-
-
Save tivac/f4f8b4086fb8bc0c9d1cd166f1a2b396 to your computer and use it in GitHub Desktop.
Illustrating a bug in rollup-plugin-commonjs and node@6
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 {fooga} from "./required.js"; | |
console.log(fooga); |
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-plugin-commonjs-bug", | |
"version": "1.0.0", | |
"main": "index.js", | |
"devDependencies": { | |
"rollup": "^0.26.2", | |
"rollup-plugin-commonjs": "^2.2.1" | |
}, | |
"scripts": { | |
"start": "rollup -config ./rollup.config.js -i ./index.js" | |
} | |
} |
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
exports.fooga = 1; | |
exports.booga = 2; |
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.exports = { | |
plugins : [ | |
require("rollup-plugin-commonjs")() | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment