Skip to content

Instantly share code, notes, and snippets.

@DaveWM
Created January 5, 2017 15:58
Show Gist options
  • Save DaveWM/73ed0a6284510ecb86b2ee0117564359 to your computer and use it in GitHub Desktop.
Save DaveWM/73ed0a6284510ecb86b2ee0117564359 to your computer and use it in GitHub Desktop.
Rollup CommonJS bug
import commonjs from 'rollup-plugin-commonjs';
export default {
entry: 'test.js',
format: 'iife',
moduleName: 'main',
plugins: [
commonjs({
include: 'x.js'
})
]
};
import x from './x';
console.log(x);
var x = {};
module.exports = x;
module.exports.default = x;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment