Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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