fix: source map warning during build (#8148)

* [WEB-5473] fix: source map errors

* [WEB-5473] chore: run codemod

* fix: build errors in editor

---------

Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
Aaron 2025-11-21 15:13:52 +07:00 committed by GitHub
parent 9611cd1e73
commit 2e15e4f786
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
956 changed files with 778 additions and 2267 deletions

View file

@ -35,8 +35,9 @@ export default defineConfig({
"src/tooltip/index.ts",
"src/utils/index.ts",
],
outDir: "dist",
format: ["esm", "cjs"],
format: ["esm"],
dts: true,
copy: ["src/styles"],
exports: {
customExports: (exports) => ({
...exports,
@ -46,8 +47,5 @@ export default defineConfig({
"./styles/react-day-picker": "./dist/styles/react-day-picker.css",
}),
},
copy: ["src/styles"],
dts: true,
clean: true,
sourcemap: false,
platform: "neutral",
});