diff options
Diffstat (limited to 'test/bundler_smoke_tests/rollup-commonjs.config.js')
-rw-r--r-- | test/bundler_smoke_tests/rollup-commonjs.config.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/bundler_smoke_tests/rollup-commonjs.config.js b/test/bundler_smoke_tests/rollup-commonjs.config.js new file mode 100644 index 000000000..3060d2396 --- /dev/null +++ b/test/bundler_smoke_tests/rollup-commonjs.config.js @@ -0,0 +1,19 @@ +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import resolve from "@rollup/plugin-node-resolve"; +import commonjs from "@rollup/plugin-commonjs"; + +const dirname = path.dirname( fileURLToPath( import.meta.url ) ); + +export default { + input: `${ dirname }/src-esm-commonjs/main.js`, + output: { + dir: `${ dirname }/tmp/rollup-commonjs`, + format: "iife", + sourcemap: true + }, + plugins: [ + resolve(), + commonjs() + ] +}; |