一覧へ戻る
Dunqing/unplugin-moment-to-dayjs(新しいタブで開きます)
主要言語: TypeScript
Replace moment with dayjs, support use in vite, rollup, webpack
- star 数
- 18
- watcher 数
- 1
- fork 数
- 2
- issue 数
- 1
- 最終更新
- 2022/09/08
主要言語: TypeScript
Replace moment with dayjs, support use in vite, rollup, webpack
Replace moment with dayjs, support use in vite, rollup, webpack
npm i unplugin-moment-to-dayjs
// vite.config.ts import momentToDayjs from 'unplugin-moment-to-dayjs/vite' export default defineConfig({ plugins: [ momentToDayjs({ /* options */ }), ], })
Example: playground/
// rollup.config.js import momentToDayjs from 'unplugin-moment-to-dayjs/rollup' export default { plugins: [ momentToDayjs({ /* options */ }), ], }
// webpack.config.js module.exports = { /* ... */ plugins: [ require('unplugin-moment-to-dayjs/webpack')({ /* options */ }), ], }
Please reference antd-dayjs-webpack-plugin