mirror of https://github.com/webpack/webpack.git
20 lines
412 B
JavaScript
20 lines
412 B
JavaScript
import "./module";
|
|
|
|
(function() {
|
|
module.exports = 1;
|
|
}).should.throw();
|
|
|
|
(typeof module.exports).should.be.eql("undefined");
|
|
|
|
(typeof define).should.be.eql("undefined");
|
|
(function() {
|
|
define(function() {})
|
|
}).should.throw(/define is not defined/);
|
|
|
|
export default 1234;
|
|
|
|
if(eval("typeof exports !== \"undefined\"")) {
|
|
// exports is node.js exports and not webpacks
|
|
Object.keys(exports).should.be.eql([]);
|
|
}
|