1
0
Fork 0
freesewing/packages/i18n/rollup.config.js

32 lines
815 B
JavaScript
Raw Normal View History

import babel from '@rollup/plugin-babel'
import resolve from '@rollup/plugin-node-resolve'
import json from '@rollup/plugin-json'
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
import { main, name, version, description, author, license } from './package.json'
import yaml from 'rollup-plugin-yaml'
2019-04-16 19:18:42 +02:00
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
2019-04-16 19:18:42 +02:00
export default {
input: 'src/index.js',
output: [
{
banner,
2019-05-18 17:23:05 +02:00
file: main,
format: 'cjs',
sourcemap: true,
exports: 'named'
}
],
2019-04-16 19:18:42 +02:00
plugins: [
babel({
exclude: 'node_modules/**',
babelHelpers: 'bundled'
}),
peerDepsExternal(),
resolve({ modulesOnly: true }),
2019-04-16 19:18:42 +02:00
json(),
2019-04-20 19:50:37 +02:00
yaml(),
2019-04-16 19:18:42 +02:00
]
}