Last active
July 31, 2018 15:05
-
-
Save Couto/1075553d0a35cc61ae564ef016dde6b3 to your computer and use it in GitHub Desktop.
Demonstration of a bug in rollup-plugin-commonjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default (a, b) => a + b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "rollup-input-object", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"devDependencies": { | |
"rollup": "^0.63.4", | |
"rollup-plugin-commonjs": "^9.1.4" | |
}, | |
"scripts": { | |
"build": "rollup -c" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import commonjs from 'rollup-plugin-commonjs' | |
const input = { outputFileName: 'main.js' }; | |
// const input = ['main.js'] | |
export default { | |
input, | |
output: { | |
dir: 'build', | |
format: 'esm' | |
}, | |
experimentalCodeSplitting: true, | |
plugins: [ | |
commonjs() | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment