From aecafa914691628cbdbc791146c74b12fd5d0f92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjam=C3=ADn=20Guzm=C3=A1n?= Date: Fri, 8 Nov 2024 09:35:14 -0300 Subject: [PATCH] remove warning from vite config --- package.json | 4 ++++ vite.config.js | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d3a86e8..b9bd8a8 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,10 @@ "require": "./dist/chunk/index.cjs", "import": "./dist/chunk/index.mjs" }, + "./compactMap": { + "require": "./dist/compactMap/index.cjs", + "import": "./dist/compactMap/index.mjs" + }, "./cooperate": { "require": "./dist/cooperate/index.cjs", "import": "./dist/cooperate/index.mjs" diff --git a/vite.config.js b/vite.config.js index 80b0bae..b2cc125 100644 --- a/vite.config.js +++ b/vite.config.js @@ -44,6 +44,7 @@ const getFileName = (chunk, extension) => { export default defineConfig({ build: { + sourcemap: true, lib: { entry: entries, }, @@ -57,7 +58,6 @@ export default defineConfig({ dir: "dist", preserveModules: true, preserveModulesRoot: "src", - sourcemap: "inline", }, { // CJS format @@ -66,7 +66,6 @@ export default defineConfig({ dir: "dist", preserveModules: true, preserveModulesRoot: "src", - sourcemap: "inline", }, ], },