Archived
1
0
Fork 0
This repository has been archived on 2024-02-07. You can view files and clone it, but cannot push or open issues or pull requests.
supDolphinWS.js/rollup.config.mjs

37 lines
720 B
JavaScript
Raw Permalink Normal View History

2023-03-09 19:53:09 +09:00
import typescript from '@rollup/plugin-typescript';
import babel from '@rollup/plugin-babel';
import resolve from '@rollup/plugin-node-resolve';
export default {
input: 'src/index.ts',
output: [
{
file: 'dist/index.js',
format: 'umd',
name: 'Dolphin',
sourcemap: true,
},
{
file: 'dist/index.cjs.js',
format: 'cjs',
sourcemap: true,
},
{
file: 'dist/index.esm.js',
format: 'esm',
sourcemap: true,
},
],
plugins: [
resolve(),
typescript(),
babel({
babelHelpers: 'bundled',
presets: [
['@babel/preset-env', {targets: {node: 'current'}}],
],
exclude: 'node_modules/**',
}),
],
};