diff --git a/templates/webpack.angular.js b/templates/webpack.angular.js index e8de5173..058a5619 100644 --- a/templates/webpack.angular.js +++ b/templates/webpack.angular.js @@ -54,6 +54,11 @@ module.exports = env => { const entryModule = `${nsWebpack.getEntryModule(appFullPath)}.ts`; const entryPath = `.${sep}${entryModule}`; + const entries = { bundle: entryPath }; + if (platform === "ios") { + entries["tns_modules/tns-core-modules/inspector_modules"] = "inspector_modules.js"; + }; + const ngCompilerTransformers = []; const additionalLazyModuleResources = []; if (aot) { @@ -100,9 +105,7 @@ module.exports = env => { ] }, target: nativescriptTarget, - entry: { - bundle: entryPath, - }, + entry: entries, output: { pathinfo: false, path: dist, diff --git a/templates/webpack.javascript.js b/templates/webpack.javascript.js index 780e9ecd..793bba54 100644 --- a/templates/webpack.javascript.js +++ b/templates/webpack.javascript.js @@ -49,6 +49,10 @@ module.exports = env => { const entryModule = nsWebpack.getEntryModule(appFullPath); const entryPath = `.${sep}${entryModule}.js`; + const entries = { bundle: entryPath }; + if (platform === "ios") { + entries["tns_modules/tns-core-modules/inspector_modules"] = "inspector_modules.js"; + }; const config = { mode: uglify ? "production" : "development", @@ -62,9 +66,7 @@ module.exports = env => { ] }, target: nativescriptTarget, - entry: { - bundle: entryPath, - }, + entry: entries, output: { pathinfo: false, path: dist, diff --git a/templates/webpack.typescript.js b/templates/webpack.typescript.js index 913977c9..a6128706 100644 --- a/templates/webpack.typescript.js +++ b/templates/webpack.typescript.js @@ -49,6 +49,10 @@ module.exports = env => { const entryModule = nsWebpack.getEntryModule(appFullPath); const entryPath = `.${sep}${entryModule}.ts`; + const entries = { bundle: entryPath }; + if (platform === "ios") { + entries["tns_modules/tns-core-modules/inspector_modules"] = "inspector_modules.js"; + }; const config = { mode: uglify ? "production" : "development", @@ -62,9 +66,7 @@ module.exports = env => { ] }, target: nativescriptTarget, - entry: { - bundle: entryPath, - }, + entry: entries, output: { pathinfo: false, path: dist, diff --git a/templates/webpack.vue.js b/templates/webpack.vue.js index 18a09ff3..45a3eecb 100644 --- a/templates/webpack.vue.js +++ b/templates/webpack.vue.js @@ -55,6 +55,10 @@ module.exports = env => { const entryModule = nsWebpack.getEntryModule(appFullPath); const entryPath = `.${sep}${entryModule}`; + const entries = { bundle: entryPath }; + if (platform === "ios") { + entries["tns_modules/tns-core-modules/inspector_modules"] = "inspector_modules.js"; + }; console.log(`Bundling application for entryPath ${entryPath}...`); const config = { @@ -70,9 +74,7 @@ module.exports = env => { }, target: nativescriptTarget, // target: nativeScriptVueTarget, - entry: { - bundle: entryPath, - }, + entry: entries, output: { pathinfo: false, path: dist,