Skip to content

Commit b15cc05

Browse files
Fix env parsing in webpack config for tns debug
1 parent ec8a18e commit b15cc05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ module.exports = (api, projectOptions) => {
103103

104104
// take advantage of the vue cli api to load the --env items into process.env.
105105
// we are filtering out the items, by catching the '=' sign, brought in from nsconfig.json as those don't need loaded into process.env
106-
api.service.loadEnv(flags.filter((o) => !o.includes('=')).join('.'));
106+
// we are also filtering out 'sourceMap' which will appear with 'tns debug'
107+
api.service.loadEnv(flags.filter((o) => !o.includes('=') && !o.includes('sourceMap')).join('.'));
107108
}
108109

109110
// setup the traditional {N} webpack 'env' variable

0 commit comments

Comments
 (0)