Skip to content

Instantly share code, notes, and snippets.

@tivac tivac/index.js Secret
Created May 10, 2016

Embed
What would you like to do?
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
You can’t perform that action at this time.