@@ -53,6 +53,8 @@ const shim = addonV1Shim(path.join(__dirname, '..'), {
5353 /* This whole hook is an ember-auto-import feature that only effects classic builds, not embroider builds. */
5454
5555 if ( useEmberModules ) {
56+ const isProduction = process . env . EMBER_ENV === 'production' ;
57+
5658 // this is our forward-compatible mode where all of ember-source is
5759 // handled by ember-auto-import, like a normal v2 addon.
5860 //
@@ -200,7 +202,7 @@ const shim = addonV1Shim(path.join(__dirname, '..'), {
200202 './dist-dev/packages/route-recognizer/index.js' ,
201203 './dist-dev/packages/router_js/index.js' ,
202204 './dist-dev/packages/rsvp/index.js' ,
203- ] ,
205+ ] . map ( ( x ) => ( isProduction ? x . replace ( '/dist-dev/' , '/dist-prod/' ) : x ) ) ,
204206 'implicit-test-modules' : [
205207 './dist-dev/packages/ember-testing/index.js' ,
206208 './dist-dev/packages/ember-testing/lib/adapters/adapter.js' ,
@@ -226,7 +228,7 @@ const shim = addonV1Shim(path.join(__dirname, '..'), {
226228 './dist-dev/packages/ember-testing/lib/test/promise.js' ,
227229 './dist-dev/packages/ember-testing/lib/test/run.js' ,
228230 './dist-dev/packages/ember-testing/lib/test/waiters.js' ,
229- ] ,
231+ ] . map ( ( x ) => ( isProduction ? x . replace ( '/dist-dev/' , '/dist-prod/' ) : x ) ) ,
230232 } ;
231233 } else {
232234 // this is our backward-compatible mode that actually keeps most of ember-source in vendor.js.
0 commit comments