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