mirror of
https://github.com/strapi/strapi.git
synced 2025-07-18 22:45:47 +00:00
34 lines
686 B
JavaScript
34 lines
686 B
JavaScript
![]() |
import babel from 'rollup-plugin-babel';
|
||
|
import commonjs from 'rollup-plugin-commonjs';
|
||
|
import resolve from 'rollup-plugin-node-resolve';
|
||
|
import pkg from './package.json';
|
||
|
|
||
|
export default {
|
||
|
input: 'lib/src/index.js',
|
||
|
output: [
|
||
|
{
|
||
|
exports: 'named',
|
||
|
file: pkg.main,
|
||
|
format: 'cjs',
|
||
|
name: 'strapi-helper-plugin',
|
||
|
},
|
||
|
{
|
||
|
exports: 'named',
|
||
|
file: pkg.module,
|
||
|
format: 'es',
|
||
|
name: 'strapi-helper-plugin',
|
||
|
},
|
||
|
],
|
||
|
external: [
|
||
|
...Object.keys(pkg.dependencies || {}),
|
||
|
...Object.keys(pkg.peerDependencies || {}),
|
||
|
],
|
||
|
plugins: [
|
||
|
commonjs(),
|
||
|
resolve(),
|
||
|
babel({
|
||
|
exclude: 'node_modules/**',
|
||
|
}),
|
||
|
],
|
||
|
};
|