Skip to content

Instantly share code, notes, and snippets.

@tivac

tivac/index.js Secret

Created May 10, 2016 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tivac/f4f8b4086fb8bc0c9d1cd166f1a2b396 to your computer and use it in GitHub Desktop.
Save tivac/f4f8b4086fb8bc0c9d1cd166f1a2b396 to your computer and use it in GitHub Desktop.
Illustrating a bug in rollup-plugin-commonjs and node@6
import {fooga} from "./required.js";
console.log(fooga);
{
"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"
}
}
exports.fooga = 1;
exports.booga = 2;
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