mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 01:03:03 +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.
16 lines
341 B
JavaScript
16 lines
341 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.js',
|
|
format: 'es',
|
|
sourcemap: true,
|
|
}
|
|
],
|
|
external: (id) => !/^(\.|\/)/.test(id),
|
|
plugins: [resolve(), sourcemaps()],
|
|
};
|