Created
January 5, 2017 15:58
-
-
Save DaveWM/73ed0a6284510ecb86b2ee0117564359 to your computer and use it in GitHub Desktop.
Rollup CommonJS bug
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 commonjs from 'rollup-plugin-commonjs'; | |
export default { | |
entry: 'test.js', | |
format: 'iife', | |
moduleName: 'main', | |
plugins: [ | |
commonjs({ | |
include: 'x.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
import x from './x'; | |
console.log(x); |
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
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