-
-
Save sunjay/af3c1a7c87b5c3aeb379 to your computer and use it in GitHub Desktop.
Rollup Bug
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
Module /tmp/rollup-bug/node_modules/redux/es/index.js does not export default (imported by /tmp/rollup-bug/node_modules/react-redux/lib/utils/wrapActionCreators.js) | |
Error: Module /tmp/rollup-bug/node_modules/redux/es/index.js does not export default (imported by /tmp/rollup-bug/node_modules/react-redux/lib/utils/wrapActionCreators.js) | |
at Module.trace (/usr/lib/node_modules/rollup/www/ROLLUP/rollup/src/Module.js:620:30) | |
at /usr/lib/node_modules/rollup/www/ROLLUP/rollup/src/Module.js:200:35 | |
at Array.forEach (native) | |
at /usr/lib/node_modules/rollup/www/ROLLUP/rollup/src/Module.js:197:25 | |
at Array.forEach (native) | |
at Module.bindAliases (/usr/lib/node_modules/rollup/www/ROLLUP/rollup/src/Module.js:186:29) | |
at /usr/lib/node_modules/rollup/www/ROLLUP/rollup/src/Bundle.js:81:44 | |
at Array.forEach (native) | |
at /usr/lib/node_modules/rollup/www/ROLLUP/rollup/src/Bundle.js:81:18 | |
at tryCatch (/usr/lib/node_modules/rollup/www/ROLLUP/rollup/node_modules/es6-promise/lib/es6-promise/-internal.js:182:12) | |
Type rollup --help for help, or visit https://github.com/rollup/rollup/wiki |
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 {Provider} from 'react-redux'; |
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-bug", | |
"version": "1.0.0", | |
"description": "", | |
"main": "rollup.config.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "MIT", | |
"dependencies": { | |
"react": "^0.14.7", | |
"react-redux": "^4.4.0", | |
"redux": "^3.3.1" | |
}, | |
"devDependencies": { | |
"babel": "^6.5.2", | |
"babel-preset-es2015": "^6.5.0", | |
"babel-preset-es2015-rollup": "^1.1.1", | |
"babel-preset-react": "^6.5.0", | |
"rollup": "^0.25.4", | |
"rollup-plugin-babel": "^2.3.9", | |
"rollup-plugin-commonjs": "^2.2.1", | |
"rollup-plugin-node-resolve": "^1.4.0" | |
} | |
} |
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 babel from 'rollup-plugin-babel'; | |
import commonjs from 'rollup-plugin-commonjs'; | |
import nodeResolve from 'rollup-plugin-node-resolve'; | |
export default { | |
// The entry and destination need to be specified | |
entry: 'index.jsx', | |
dest: 'index.js', | |
format: 'iife', | |
intro: '/* Author: Sunjay Varma <varma.sunjay@gmail.com> */', | |
sourceMap: 'inline', | |
plugins: [ | |
babel({ | |
babelrc: false, | |
exclude: 'node_modules/**', | |
presets: ["react", "es2015-rollup"] | |
}), | |
nodeResolve({ | |
jsnext: true, | |
main: true, | |
browser: true, | |
extensions: ['.js', '.jsx'] | |
}), | |
commonjs({ | |
include: 'node_modules/**' | |
}) | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment