/
githubmirror
/
dayjs
Обзор
Документация
Войти
/
githubmirror
/
dayjs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
build/rollup.config.js
29 строк
532 B
Alois Klink
Fix broken UTC plugin due to rollup (#1453)
26 май 2021, 09:05
Не верифицирован
26 май 2021, 09:05
0914706
Код
Авторство
О чём код?
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 } } }