1 Star 2 Fork 1

JA+/jaContextMenu

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rollup.config.mjs 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
JA+ 提交于 2024-08-30 10:38 . i18n
import typescript from '@rollup/plugin-typescript';
import terser from '@rollup/plugin-terser';
export default {
input: 'src/index.ts',
output: [
{
file: 'lib/ja-contextmenu.esm.js',
format: 'esm',
sourcemap: true,
},
{
file: 'lib/ja-contextmenu.js',
format: 'cjs',
sourcemap: true,
},
{
file: 'lib/ja-contextmenu.esm.min.js',
format: 'esm',
sourcemap: true,
plugins: [terser()],
},
// {
// file: 'lib/index.es5.js',
// format: 'esm',
// sourcemap: true,
// plugins: [
// getBabelOutputPlugin({
// presets: ['@babel/preset-env'],
// }),
// ],
// },
// {
// file: 'lib/index.es5.min.js',
// format: 'esm',
// sourcemap: true,
// plugins: [
// getBabelOutputPlugin({
// presets: ['@babel/preset-env'],
// }),
// uglify(),
// ],
// },
],
plugins: [
typescript(),
// getBabelOutputPlugin({
// presets: ['@babel/preset-env'],
// }),
// babel({
// exclude: 'node_modules/**',
// babelHelpers: 'runtime',
// }),
],
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/japlus/ja-context-menu.git
git@gitee.com:japlus/ja-context-menu.git
japlus
ja-context-menu
jaContextMenu
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385