From 2f5a249b3115d992f9a746dc5c42de4d5dfd5ddb Mon Sep 17 00:00:00 2001 From: Johannes Ewald Date: Fri, 27 Oct 2023 18:21:20 +0200 Subject: [PATCH] fix: Inline sourceContents in source maps (#156) The original sources that the source map were pointing to were not included in the package build. This change inlines the sourceContents into the source map. Fixes Error when update version (Webpack) #149 --- tsconfig.build.json | 5 ++++- tsconfig.json | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tsconfig.build.json b/tsconfig.build.json index e107ce7..fec589e 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -3,7 +3,10 @@ "compilerOptions": { "outDir": "build", "target": "es2015", - "module": "esnext" + "module": "esnext", + "sourceMap": true, + "inlineSources": true, + "declaration": true }, "include": ["src"], "exclude": ["src/**/*.test.ts", "src/tests/**/*.ts"] diff --git a/tsconfig.json b/tsconfig.json index 56d1a7c..b05b078 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,13 +1,11 @@ { "compilerOptions": { "strict": true, - "sourceMap": true, "esModuleInterop": true, "module": "esnext", "moduleResolution": "node", "resolveJsonModule": true, - "forceConsistentCasingInFileNames": true, - "declaration": true + "forceConsistentCasingInFileNames": true }, "exclude": ["build/**"] }