mirror of https://github.com/pyodide/pyodide.git
NFC Move rollup.config.js to rollup.config.mjs (#3296)
My local build fails with: ``` RollupError: Node tried to load your configuration file as CommonJS even though it is likely an ES module. To resolve this, change the extension of your configuration to ".mjs", set "type": "module" in your package.json file or pass the "--bundleConfigAsCjs" flag. Original error: Cannot use import statement outside a module ``` This fixes it.
This commit is contained in:
parent
403ac54d43
commit
68842baa16
2
Makefile
2
Makefile
|
@ -73,7 +73,7 @@ node_modules/.installed : src/js/package.json src/js/package-lock.json
|
|||
touch node_modules/.installed
|
||||
|
||||
dist/pyodide.js src/js/_pyodide.out.js: src/js/*.ts src/js/pyproxy.gen.ts src/js/error_handling.gen.ts node_modules/.installed
|
||||
npx rollup -c src/js/rollup.config.js
|
||||
npx rollup -c src/js/rollup.config.mjs
|
||||
|
||||
dist/package.json : src/js/package.json
|
||||
cp $< $@
|
||||
|
|
Loading…
Reference in New Issue