mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 17:42:15 +08:00
25 lines
470 B
JavaScript
25 lines
470 B
JavaScript
import resolve from '@rollup/plugin-node-resolve';
|
|
import sourcemaps from 'rollup-plugin-sourcemaps';
|
|
|
|
export default {
|
|
input: 'dist-transpiled/index.js',
|
|
output: [
|
|
{
|
|
file: 'dist/index.esm.js',
|
|
format: 'es',
|
|
sourcemap: true
|
|
},
|
|
{
|
|
file: 'dist/index.js',
|
|
format: 'commonjs',
|
|
preferConst: true,
|
|
sourcemap: true
|
|
}
|
|
],
|
|
external: (id) => !/^(\.|\/)/.test(id),
|
|
plugins: [
|
|
resolve(),
|
|
sourcemaps()
|
|
]
|
|
};
|