1 Star 0 Fork 0

戴彬 / dl-store

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rollup.config.js 1.23 KB
AI 代码解读
一键复制 编辑 原始数据 按行查看 历史
戴彬 提交于 2022-12-15 19:17 . feat:1.0.0
const pluginCommonjs = require('@rollup/plugin-commonjs');
const pluginBabel = require('rollup-plugin-babel');
const { terser } = require('rollup-plugin-terser');
module.exports = {
input: './src/index.js',
output: [
{
format: "esm",
file: "./lib/dl-store.esm.js"
},
{
format: "esm",
file: "./lib/dl-store.esm.min.js",
plugins: [
terser({
compress: {
drop_console: true
}
})
]
},
{
format: "cjs",
exports: 'default',
file: "./lib/dl-store.cjs.js"
},
{
format: "cjs",
exports: 'default',
file: "./lib/dl-store.cjs.min.js",
plugins: [
terser({
compress: {
drop_console: true
}
})
]
},
{
format: "iife",
extend: true,
file: "./lib/dl-store.iife.js",
name: "DlStore"
},
{
format: "iife",
extend: true,
file: "./lib/dl-store.iife.min.js",
name: "DlStore",
plugins: [
terser({
compress: {
drop_console: true
}
})
]
}
],
plugins: [
pluginCommonjs(),
pluginBabel({
exclude: 'node_modules/**'
})
]
}
1
https://gitee.com/dait/dl-store.git
git@gitee.com:dait/dl-store.git
dait
dl-store
dl-store
master

搜索帮助