refactor: enable source maps in Vite config
All checks were successful
Publish to npm / publish (push) Successful in 28s

This commit is contained in:
Astrian Zheng 2025-02-20 20:20:25 +11:00
parent 5fd726c446
commit 4d1f8725a4
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA
2 changed files with 3 additions and 7 deletions

View File

@ -1,17 +1,12 @@
import React from 'react'
import { SingleDatePicker, SingleWeekPicker } from "../src/index"
import { SingleDatePicker, SingleWeekPicker } from "../dist/index.es"
import './app.scss'
export default () => {
return (<div className='app'>
<div className="border">
<div>
<SingleWeekPicker />
</div>
<div>
<SingleDatePicker />
</div>
</div>
</div>)
}

View File

@ -11,6 +11,7 @@ export default defineConfig(({mode}) => ({
name: "datenel-react",
fileName: format => `index.${format}.js`,
},
sourcemap: true,
rollupOptions: {
preserveEntrySignatures: "strict",
external: ["react"],