Skip to content

Commit 367d033

Browse files
committed
Auto merge of #1959 - Turbo87:auto-import, r=locks
Use `ember-auto-import` to import npm modules ... instead of using the complicated `app.import()` API
2 parents 7a31176 + da343f5 commit 367d033

File tree

3 files changed

+6218
-2873
lines changed

3 files changed

+6218
-2873
lines changed

ember-cli-build.js

-19
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,5 @@ module.exports = function(defaults) {
3636
},
3737
});
3838

39-
// Use `app.import` to add additional libraries to the generated
40-
// output files.
41-
//
42-
// If you need to use different assets in different
43-
// environments, specify an object as the first parameter. That
44-
// object's keys should be the environment name and the values
45-
// should be the asset to use in that environment.
46-
//
47-
// If the library that you are including contains AMD or ES6
48-
// modules that you would like to import into your application
49-
// please specify an object with the list of modules as keys
50-
// along with the exports of each module as its value.
51-
app.import('node_modules/timekeeper/lib/timekeeper.js', {
52-
using: [{ transformation: 'cjs', as: 'timekeeper' }],
53-
});
54-
app.import('node_modules/semver/semver.js', {
55-
using: [{ transformation: 'cjs', as: 'semver' }],
56-
});
57-
5839
return app.toTree();
5940
};

0 commit comments

Comments
 (0)