From d15bf9f531b854b98fe609880079a0fefbfdbbb4 Mon Sep 17 00:00:00 2001 From: Marvin Luchs Date: Tue, 7 Nov 2023 11:06:25 +0100 Subject: [PATCH] fix: include sources in source map fixes "Failed to parse source map from 'node_modules\openapi-msw\exports\main.ts'" error when serving with vite --- .changeset/eighty-ads-remain.md | 5 +++++ tsconfig.build.json | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/eighty-ads-remain.md diff --git a/.changeset/eighty-ads-remain.md b/.changeset/eighty-ads-remain.md new file mode 100644 index 0000000..f8f0ce9 --- /dev/null +++ b/.changeset/eighty-ads-remain.md @@ -0,0 +1,5 @@ +--- +"openapi-msw": patch +--- + +fix compilation warning due to missing sources in source map diff --git a/tsconfig.build.json b/tsconfig.build.json index 401cbb0..9037f95 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -4,7 +4,8 @@ "compilerOptions": { "outDir": "./dist", "declaration": true, - "sourceMap": true + "sourceMap": true, + "inlineSources": true }, "include": ["src", "exports"], "exclude": ["**/*.test.*"]