Last active
February 20, 2018 14:36
-
-
Save anandthakker/f2bc16bed7335e8cccb21f257bdf6529 to your computer and use it in GitHub Desktop.
Rollup code-splitting AMD bug
This file contains hidden or 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": "code-splitting-bug", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"dependencies": { | |
"rollup": "^0.56.2" | |
} | |
} |
This file contains hidden or 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 [{ | |
input: ['thing1.js', 'thing2.js'], | |
output: { | |
dir: 'out', | |
format: 'amd' | |
}, | |
experimentalCodeSplitting: true | |
}] |
This file contains hidden or 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 d from './shared'; | |
export default d.map(d => d + 1); |
This file contains hidden or 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 d from './shared'; | |
export default d.map(d => d + 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment