From f2d4cfcef91dd919998b9669e80c975d72e2e36d Mon Sep 17 00:00:00 2001 From: Steve Faulkner <471400+southpolesteve@users.noreply.github.com> Date: Fri, 25 Sep 2020 18:12:04 -0500 Subject: [PATCH] Fixes --- tsconfig.json | 2 +- webpack.config.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 85238fc47..5d6407daa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "allowJs": true, - "sourceMap": false, + "sourceMap": true, "noImplicitAny": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, diff --git a/webpack.config.js b/webpack.config.js index afa0e4a63..bfcc861cd 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -109,6 +109,7 @@ module.exports = function(env = {}, argv = {}) { mode === "development" ? new webpack.EvalSourceMapDevToolPlugin({}) : new webpack.SourceMapDevToolPlugin({ + // test: [".js", ".mjs", ".css", ".ts", ".tsx"], filename: "[name].js.map", exclude: [/vendor/] }); @@ -174,6 +175,7 @@ module.exports = function(env = {}, argv = {}) { patterns: [{ from: "DataExplorer.nuspec" }, { from: "web.config" }, { from: "quickstart/*.zip" }] }), new EnvironmentPlugin(envVars), + new webpack.optimize.LimitChunkCountPlugin({ maxChunks: 1 }), sourceMapPlugin ]; @@ -216,6 +218,7 @@ module.exports = function(env = {}, argv = {}) { minimize: mode === "production" ? true : false, minimizer: [ new TerserPlugin({ + sourceMap: true, cache: ".cache/terser", terserOptions: { // These options increase our initial bundle size by ~5% but the builds are significantly faster and won't run out of memory