Skip to content
Permalink
Browse files
add failing test for default import exportMode check
  • Loading branch information
guybedford authored and lukastaegert committed May 15, 2018
1 parent f837dd0 commit 4b0b32b65d4ec5e168e70d981dc9c49c2e1fb6cb
Showing 11 changed files with 74 additions and 0 deletions.
@@ -0,0 +1,6 @@
module.exports = {
description: 'entry chunk export mode checks',
options: {
input: ['main1.js', 'main2.js']
}
};
@@ -0,0 +1,5 @@
define(['./main2.js'], function (main2) { 'use strict';

main2();

});
@@ -0,0 +1,9 @@
define(function () { 'use strict';

function fn () {
console.log('main fn');
}

return fn;

});
@@ -0,0 +1,5 @@
'use strict';

var main2 = require('./main2.js');

main2();
@@ -0,0 +1,7 @@
'use strict';

function fn () {
console.log('main fn');
}

module.exports = fn;
@@ -0,0 +1,3 @@
import fn from './main2.js';

fn();
@@ -0,0 +1,5 @@
function fn () {
console.log('main fn');
}

export default fn;
@@ -0,0 +1,14 @@
System.register(['./main2.js'], function (exports, module) {
'use strict';
var fn;
return {
setters: [function (module) {
fn = module.default;
}],
execute: function () {

fn();

}
};
});
@@ -0,0 +1,13 @@
System.register([], function (exports, module) {
'use strict';
return {
execute: function () {

exports('default', fn);
function fn () {
console.log('main fn');
}

}
};
});
@@ -0,0 +1,4 @@
import fn from './main2.js';


fn();
@@ -0,0 +1,3 @@
export default function fn () {
console.log('main fn');
}

0 comments on commit 4b0b32b

Please sign in to comment.