refactor: enable source maps in Vite config
All checks were successful
Publish to npm / publish (push) Successful in 28s
All checks were successful
Publish to npm / publish (push) Successful in 28s
This commit is contained in:
parent
5fd726c446
commit
4d1f8725a4
|
@ -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>)
|
||||
}
|
|
@ -11,6 +11,7 @@ export default defineConfig(({mode}) => ({
|
|||
name: "datenel-react",
|
||||
fileName: format => `index.${format}.js`,
|
||||
},
|
||||
sourcemap: true,
|
||||
rollupOptions: {
|
||||
preserveEntrySignatures: "strict",
|
||||
external: ["react"],
|
||||
|
|
Loading…
Reference in New Issue
Block a user