Browse Source

failing test for #92

contingency-plan
Rich Harris 9 years ago
parent
commit
e35df59450
  1. 7
      test/form/exports-at-end-if-possible/_config.js
  2. 11
      test/form/exports-at-end-if-possible/_expected/amd.js
  3. 9
      test/form/exports-at-end-if-possible/_expected/cjs.js
  4. 7
      test/form/exports-at-end-if-possible/_expected/es6.js
  5. 11
      test/form/exports-at-end-if-possible/_expected/iife.js
  6. 15
      test/form/exports-at-end-if-possible/_expected/umd.js
  7. 5
      test/form/exports-at-end-if-possible/main.js

7
test/form/exports-at-end-if-possible/_config.js

@ -0,0 +1,7 @@
module.exports = {
description: 'exports variables at end, if possible',
options: {
moduleName: 'myBundle'
},
solo: true
};

11
test/form/exports-at-end-if-possible/_expected/amd.js

@ -0,0 +1,11 @@
define(['exports'], function (exports) { 'use strict';
var FOO = 'foo';
console.log( FOO );
console.log( FOO );
console.log( FOO );
exports.FOO = FOO;
});

9
test/form/exports-at-end-if-possible/_expected/cjs.js

@ -0,0 +1,9 @@
'use strict';
var FOO = 'foo';
console.log( FOO );
console.log( FOO );
console.log( FOO );
exports.FOO = FOO;

7
test/form/exports-at-end-if-possible/_expected/es6.js

@ -0,0 +1,7 @@
const FOO = 'foo';
console.log( FOO );
console.log( FOO );
console.log( FOO );
export { FOO };

11
test/form/exports-at-end-if-possible/_expected/iife.js

@ -0,0 +1,11 @@
(function (exports) { 'use strict';
var FOO = 'foo';
console.log( FOO );
console.log( FOO );
console.log( FOO );
exports.FOO = FOO;
})((this.myBundle = {}));

15
test/form/exports-at-end-if-possible/_expected/umd.js

@ -0,0 +1,15 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
factory((global.myBundle = {}));
}(this, function (exports) { 'use strict';
var FOO = 'foo';
console.log( FOO );
console.log( FOO );
console.log( FOO );
exports.FOO = FOO;
}));

5
test/form/exports-at-end-if-possible/main.js

@ -0,0 +1,5 @@
export var FOO = 'foo';
console.log( FOO );
console.log( FOO );
console.log( FOO );
Loading…
Cancel
Save