Skip to content

Commit

Permalink
remove warning from vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
therialguz committed Nov 8, 2024
1 parent e1121c5 commit aecafa9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const getFileName = (chunk, extension) => {

export default defineConfig({
build: {
sourcemap: true,
lib: {
entry: entries,
},
Expand All @@ -57,7 +58,6 @@ export default defineConfig({
dir: "dist",
preserveModules: true,
preserveModulesRoot: "src",
sourcemap: "inline",
},
{
// CJS format
Expand All @@ -66,7 +66,6 @@ export default defineConfig({
dir: "dist",
preserveModules: true,
preserveModulesRoot: "src",
sourcemap: "inline",
},
],
},
Expand Down

0 comments on commit aecafa9

Please sign in to comment.