Skip to content

Commit 248e860

Browse files
committed
build cleanup and output declarations
1 parent 7214d35 commit 248e860

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

ember-cli-build.js

+21-8
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,19 @@ module.exports = function (app) {
5656
output: [{
5757
file: 'es6/backburner.js',
5858
format: 'es',
59-
sourcemap: true
60-
}, {
59+
sourcemap: true,
60+
exports: 'named'
61+
}],
62+
plugins: [
63+
loadWithInlineMap()
64+
]
65+
}
66+
});
67+
68+
const amdNamed = new Rollup(compiled, {
69+
rollup: {
70+
input: 'lib/index.js',
71+
output: [{
6172
file: 'named-amd/backburner.js',
6273
exports: 'named',
6374
format: 'amd',
@@ -81,22 +92,24 @@ module.exports = function (app) {
8192
rollup: {
8293
input: 'tests/index.js',
8394
external: ['backburner'],
84-
plugins: [
85-
loadWithInlineMap(),
86-
buble()
87-
],
8895
output: [{
8996
file: 'named-amd/tests.js',
9097
format: 'amd',
9198
amd: { id: 'backburner-tests' },
92-
sourcemap: true
93-
}]
99+
sourcemap: true,
100+
exports: 'named'
101+
}],
102+
plugins: [
103+
loadWithInlineMap(),
104+
buble()
105+
]
94106
}
95107
});
96108

97109
return new MergeTrees([
98110
backburner,
99111
compiledDeclarations,
112+
amdNamed,
100113
amdTests,
101114
qunit,
102115
loader,

0 commit comments

Comments
 (0)