migrate back to commonjs

This commit is contained in:
Anton Lavrenov
2023-04-13 23:27:56 -05:00
parent 9fd79e8642
commit 8e955f9dd5
11 changed files with 17707 additions and 17749 deletions

View File

@@ -1,5 +1,5 @@
// import resolve from 'rollup-plugin-node-resolve';
// import commonjs from 'rollup-plugin-commonjs';
import commonjs from 'rollup-plugin-commonjs';
import typescript from 'rollup-plugin-typescript2';
const pkg = require('./package.json');
@@ -29,6 +29,11 @@ export default {
useTsconfigDeclarationDir: true,
abortOnError: false,
removeComments: false,
tsconfigOverride: {
compilerOptions: {
module: 'ES2020',
},
},
}),
// // Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs)
// commonjs(),