mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-14 16:52:26 +08:00

BREAKING CHANGE: `@ionic/react` and `@ionic/react-router` no longer ship a CommonJS entry point. Instead, only an ES Module entry point is provided for improved compatibility with Vite.
26 lines
550 B
JavaScript
26 lines
550 B
JavaScript
import resolve from '@rollup/plugin-node-resolve';
|
|
import sourcemaps from 'rollup-plugin-sourcemaps';
|
|
// import json from '@rollup/plugin-json';
|
|
|
|
export default {
|
|
input: {
|
|
index: 'dist-transpiled/index',
|
|
// 'routing/index': 'dist-transpiled/routing/index'
|
|
},
|
|
output: [
|
|
{
|
|
dir: 'dist/',
|
|
entryFileNames: '[name].js',
|
|
chunkFileNames: '[name]-[hash].js',
|
|
format: 'es',
|
|
sourcemap: true,
|
|
}
|
|
],
|
|
external: (id) => !/^(\.|\/)/.test(id),
|
|
plugins: [
|
|
resolve(),
|
|
sourcemaps(),
|
|
// json()
|
|
],
|
|
};
|