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:
Hood Chatham 2022-11-26 15:05:42 -08:00 committed by GitHub
parent 403ac54d43
commit 68842baa16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ node_modules/.installed : src/js/package.json src/js/package-lock.json
touch node_modules/.installed 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 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 dist/package.json : src/js/package.json
cp $< $@ cp $< $@