chore: cleanup

This commit is contained in:
Nathan Walker
2020-07-27 19:53:11 -07:00
parent c7db78b586
commit 61ff24e704
21 changed files with 81 additions and 260 deletions

View File

@@ -49,6 +49,7 @@ module.exports = env => {
hiddenSourceMap, // --env.hiddenSourceMap
hmr, // --env.hmr,
unitTesting, // --env.unitTesting,
testing, // --env.testing
verbose, // --env.verbose
snapshotInDocker, // --env.snapshotInDocker
skipSnapshotTools, // --env.skipSnapshotTools
@@ -82,7 +83,7 @@ module.exports = env => {
entries.bundle = entryPath;
const areCoreModulesExternal = Array.isArray(env.externals) && env.externals.some(e => e.indexOf("@nativescript") > -1);
if (platform === "ios" && !areCoreModulesExternal) {
if (platform === "ios" && !areCoreModulesExternal && !testing) {
entries["tns_modules/@nativescript/core/inspector_modules"] = "inspector_modules";
};
@@ -293,9 +294,5 @@ module.exports = env => {
config.plugins.push(new webpack.HotModuleReplacementPlugin());
}
config.stats = {
warnings: false
};
return config;
};