build: silence sourcemap enablement warning
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 29 Sep 2023 14:06:00 +0000 (16:06 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 29 Sep 2023 14:06:00 +0000 (16:06 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
rollup.config.mjs
tsconfig.build.json

index 3d069f7f7b0f6956ec192bb40748db09bee76a1c..23d260d05ee6af1dc374dbfb98007c851dc13479 100644 (file)
@@ -78,7 +78,10 @@ export default defineConfig([
     ],
     plugins: [
       typescript({
-        tsconfig: './tsconfig.build.json'
+        tsconfig: './tsconfig.build.json',
+        compilerOptions: {
+          sourceMap: sourcemap
+        }
       }),
       del({
         targets: ['./lib/*']
index 87915c1e67db042c15cc271103d0070baf6c54d9..5eca91e41fca03590f023da055054ee476f0544b 100644 (file)
@@ -1,7 +1,4 @@
 {
   "extends": "./tsconfig.json",
-  "compilerOptions": {
-    "sourceMap": true
-  },
   "exclude": ["node_modules", "lib", "examples/typescript/**/*.ts"]
 }