sup39
0516cb6543
- Changed `Link` (next/link) to `a` - Automatically adds slash before children entries
32 lines
675 B
JavaScript
32 lines
675 B
JavaScript
import typescript from '@rollup/plugin-typescript';
|
|
import babel from '@rollup/plugin-babel';
|
|
import resolve from '@rollup/plugin-node-resolve';
|
|
|
|
export default {
|
|
input: 'src/index.tsx',
|
|
output: [
|
|
{
|
|
file: 'dist/index.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'}}],
|
|
'@babel/preset-react',
|
|
],
|
|
exclude: 'node_modules/**',
|
|
}),
|
|
],
|
|
external: ['react', 'react-dom'],
|
|
};
|