XYZ
XYZ

Reputation: 27387

Ember imported lib does not include in production build version

I have import an external lib using code snippet below in ember-cli-build.js file,

app.import('./bower_components/js-combinatorics/combinatorics.js');

It works fine in development mode, however, when after ember build -prod browser complains the lib cannot be found.

It is also works fine in normal build, ember build

Reference, https://stackoverflow.com/a/38268376/2226315

Upvotes: 1

Views: 53

Answers (1)

Ember Freak
Ember Freak

Reputation: 12872

Yes. It will work correctly without ./

Refer this issue

Upvotes: 1

Related Questions