Skip to main content
Module

x/dayjs/build/rollup.config.js

⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
Go to Latest
File
const babel = require('rollup-plugin-babel')const { terser } = require('rollup-plugin-terser')
module.exports = (config) => { const { input, fileName, name } = config return { input: { input, external: [ 'dayjs' ], plugins: [ babel({ exclude: 'node_modules/**' }), terser() ] }, output: { file: fileName, format: 'umd', name: name || 'dayjs', globals: { dayjs: 'dayjs' }, compact: true } }}