Skip to content

Instantly share code, notes, and snippets.

@anandthakker
Last active February 20, 2018 14:36
Show Gist options
  • Save anandthakker/f2bc16bed7335e8cccb21f257bdf6529 to your computer and use it in GitHub Desktop.
Save anandthakker/f2bc16bed7335e8cccb21f257bdf6529 to your computer and use it in GitHub Desktop.
Rollup code-splitting AMD bug
{
"name": "code-splitting-bug",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"rollup": "^0.56.2"
}
}
export default [{
input: ['thing1.js', 'thing2.js'],
output: {
dir: 'out',
format: 'amd'
},
experimentalCodeSplitting: true
}]
const data = [1, 2, 3];
export default data;
import d from './shared';
export default d.map(d => d + 1);
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