Convert to ESM

This commit is contained in:
Nick Alteen
2024-11-15 11:44:18 -05:00
parent d6b1edd724
commit 970fe4ae16
13 changed files with 2632 additions and 316 deletions

18
rollup.config.ts Normal file
View File

@ -0,0 +1,18 @@
// See: https://rollupjs.org/introduction/
import commonjs from '@rollup/plugin-commonjs'
import nodeResolve from '@rollup/plugin-node-resolve'
import typescript from '@rollup/plugin-typescript'
const config = {
input: 'src/index.ts',
output: {
esModule: true,
file: 'dist/index.js',
format: 'es',
sourcemap: true
},
plugins: [typescript(), nodeResolve(), commonjs()]
}
export default config