Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 0f4d801

Browse files
committed
sans-promises build fix
1 parent acf37b8 commit 0f4d801

File tree

2 files changed

+15
-18
lines changed

2 files changed

+15
-18
lines changed

Gruntfile.js

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,19 @@ module.exports = function (grunt) {
2121
},
2222
concat: {
2323
dist: {
24-
src: [
25-
'node_modules/when/es6-shim/Promise.js',
26-
'src/polyfill-wrapper-start.js',
27-
'dist/<%= pkg.name %>.js',
28-
'src/polyfill-wrapper-end.js'
29-
],
30-
dest: 'dist/<%= pkg.name %>.src.js'
31-
},
32-
polyfillOnly: {
33-
src: [
34-
'src/polyfill-wrapper-start.js',
35-
'dist/<%= pkg.name %>.src.js',
36-
'src/polyfill-wrapper-end.js'
37-
],
38-
dest: 'dist/<%= pkg.name %>-sans-promises.src.js'
24+
files: {
25+
'dist/<%= pkg.name %>.src.js': [
26+
'node_modules/when/es6-shim/Promise.js',
27+
'src/polyfill-wrapper-start.js',
28+
'dist/<%= pkg.name %>.js',
29+
'src/polyfill-wrapper-end.js'
30+
],
31+
'dist/<%= pkg.name %>-sans-promises.src.js': [
32+
'src/polyfill-wrapper-start.js',
33+
'dist/<%= pkg.name %>.js',
34+
'src/polyfill-wrapper-end.js'
35+
]
36+
}
3937
}
4038
},
4139
esnext: {
@@ -59,7 +57,6 @@ module.exports = function (grunt) {
5957
'var $__Object$create = Object.create;',
6058
replacement: ''
6159
}]
62-
6360
}
6461
}
6562
},

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
if (!global.traceur)
22
require('traceur');
3-
require('../dist/es6-module-loader');
3+
require('../dist/es6-module-loader-sans-promises.src');
44

55
module.exports = {
6-
Loader: global.Reflect.Loader,
6+
Loader: global.LoaderPolyfill,
77
System: global.System
88
};

0 commit comments

Comments
 (0)