From a533373a7059574eca05fdcbef622f3713cdebd4 Mon Sep 17 00:00:00 2001 From: Devonte Date: Thu, 20 Feb 2020 23:43:58 +0000 Subject: [PATCH 1/2] Move sourceMapPath require --- src/ember-app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ember-app.js b/src/ember-app.js index 1fc94c2..b008ca0 100644 --- a/src/ember-app.js +++ b/src/ember-app.js @@ -14,6 +14,7 @@ const FastBootInfo = require('./fastboot-info'); const Result = require('./result'); const FastBootSchemaVersions = require('./fastboot-schema-versions'); const getPackageName = require('./utils/get-package-name'); +const sourceMapPath = require.resolve('./scripts/install-source-map-support'); /** * @private @@ -58,7 +59,7 @@ class EmberApp { this.html = fs.readFileSync(config.htmlFile, 'utf8'); this.sandboxRequire = this.buildWhitelistedRequire(this.moduleWhitelist, distPath); - let filePaths = [require.resolve('./scripts/install-source-map-support')].concat( + let filePaths = [sourceMapPath].concat( config.vendorFiles, config.appFiles ); From 743467f49dbf0627ee60ebf1f6abb54f630dc205 Mon Sep 17 00:00:00 2001 From: Devonte Date: Thu, 20 Feb 2020 23:54:11 +0000 Subject: [PATCH 2/2] Update sourceMapSupportScriptPath --- src/ember-app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ember-app.js b/src/ember-app.js index b008ca0..5abcae3 100644 --- a/src/ember-app.js +++ b/src/ember-app.js @@ -14,7 +14,7 @@ const FastBootInfo = require('./fastboot-info'); const Result = require('./result'); const FastBootSchemaVersions = require('./fastboot-schema-versions'); const getPackageName = require('./utils/get-package-name'); -const sourceMapPath = require.resolve('./scripts/install-source-map-support'); +const sourceMapSupportScriptPath = require.resolve('./scripts/install-source-map-support'); /** * @private @@ -59,7 +59,7 @@ class EmberApp { this.html = fs.readFileSync(config.htmlFile, 'utf8'); this.sandboxRequire = this.buildWhitelistedRequire(this.moduleWhitelist, distPath); - let filePaths = [sourceMapPath].concat( + let filePaths = [sourceMapSupportScriptPath].concat( config.vendorFiles, config.appFiles );