Commit 69b0f0b5 by CaIon

feat: add date-fns and date-fns-tz paths to build configuration

parent 48da37a3
......@@ -10,6 +10,8 @@ const semiUiDir = path.resolve(
path.dirname(require.resolve('@douyinfe/semi-ui')),
'../..',
)
const dateFnsDir = path.dirname(require.resolve('date-fns/package.json'))
const dateFnsTzDir = path.dirname(require.resolve('date-fns-tz/package.json'))
export default defineConfig(({ envMode }) => {
const env = loadEnv({ mode: envMode, prefixes: ['VITE_'] })
......@@ -47,6 +49,8 @@ export default defineConfig(({ envMode }) => {
semiUiDir,
'dist/css/semi.css',
),
'date-fns': dateFnsDir,
'date-fns-tz': dateFnsTzDir,
},
},
html: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment