This repository was archived by the owner on Aug 7, 2021. It is now read-only.
File tree 4 files changed +21
-12
lines changed
4 files changed +21
-12
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,11 @@ module.exports = env => {
54
54
55
55
const entryModule = `${ nsWebpack . getEntryModule ( appFullPath ) } .ts` ;
56
56
const entryPath = `.${ sep } ${ entryModule } ` ;
57
+ const entries = { bundle : entryPath } ;
58
+ if ( platform === "ios" ) {
59
+ entries [ "tns_modules/tns-core-modules/inspector_modules" ] = "inspector_modules.js" ;
60
+ } ;
61
+
57
62
const ngCompilerTransformers = [ ] ;
58
63
const additionalLazyModuleResources = [ ] ;
59
64
if ( aot ) {
@@ -100,9 +105,7 @@ module.exports = env => {
100
105
]
101
106
} ,
102
107
target : nativescriptTarget ,
103
- entry : {
104
- bundle : entryPath ,
105
- } ,
108
+ entry : entries ,
106
109
output : {
107
110
pathinfo : false ,
108
111
path : dist ,
Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ module.exports = env => {
49
49
50
50
const entryModule = nsWebpack . getEntryModule ( appFullPath ) ;
51
51
const entryPath = `.${ sep } ${ entryModule } .js` ;
52
+ const entries = { bundle : entryPath } ;
53
+ if ( platform === "ios" ) {
54
+ entries [ "tns_modules/tns-core-modules/inspector_modules" ] = "inspector_modules.js" ;
55
+ } ;
52
56
53
57
const config = {
54
58
mode : uglify ? "production" : "development" ,
@@ -62,9 +66,7 @@ module.exports = env => {
62
66
]
63
67
} ,
64
68
target : nativescriptTarget ,
65
- entry : {
66
- bundle : entryPath ,
67
- } ,
69
+ entry : entries ,
68
70
output : {
69
71
pathinfo : false ,
70
72
path : dist ,
Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ module.exports = env => {
49
49
50
50
const entryModule = nsWebpack . getEntryModule ( appFullPath ) ;
51
51
const entryPath = `.${ sep } ${ entryModule } .ts` ;
52
+ const entries = { bundle : entryPath } ;
53
+ if ( platform === "ios" ) {
54
+ entries [ "tns_modules/tns-core-modules/inspector_modules" ] = "inspector_modules.js" ;
55
+ } ;
52
56
53
57
const config = {
54
58
mode : uglify ? "production" : "development" ,
@@ -62,9 +66,7 @@ module.exports = env => {
62
66
]
63
67
} ,
64
68
target : nativescriptTarget ,
65
- entry : {
66
- bundle : entryPath ,
67
- } ,
69
+ entry : entries ,
68
70
output : {
69
71
pathinfo : false ,
70
72
path : dist ,
Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ module.exports = env => {
55
55
56
56
const entryModule = nsWebpack . getEntryModule ( appFullPath ) ;
57
57
const entryPath = `.${ sep } ${ entryModule } ` ;
58
+ const entries = { bundle : entryPath } ;
59
+ if ( platform === "ios" ) {
60
+ entries [ "tns_modules/tns-core-modules/inspector_modules" ] = "inspector_modules.js" ;
61
+ } ;
58
62
console . log ( `Bundling application for entryPath ${ entryPath } ...` ) ;
59
63
60
64
const config = {
@@ -70,9 +74,7 @@ module.exports = env => {
70
74
} ,
71
75
target : nativescriptTarget ,
72
76
// target: nativeScriptVueTarget,
73
- entry : {
74
- bundle : entryPath ,
75
- } ,
77
+ entry : entries ,
76
78
output : {
77
79
pathinfo : false ,
78
80
path : dist ,
You can’t perform that action at this time.
0 commit comments