mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-24 17:03:47 +01:00
f2a187d5fe
* feat(#1460): string interpolation * chore: deleted file commited accidentally
41 lines
978 B
JavaScript
41 lines
978 B
JavaScript
const { nodeResolve } = require('@rollup/plugin-node-resolve');
|
|
const commonjs = require('@rollup/plugin-commonjs');
|
|
const typescript = require('@rollup/plugin-typescript');
|
|
const dts = require('rollup-plugin-dts');
|
|
const { terser } = require('rollup-plugin-terser');
|
|
const peerDepsExternal = require('rollup-plugin-peer-deps-external');
|
|
|
|
const packageJson = require('./package.json');
|
|
|
|
module.exports = [
|
|
{
|
|
input: 'src/index.ts',
|
|
output: [
|
|
{
|
|
file: packageJson.main,
|
|
format: 'cjs',
|
|
sourcemap: true
|
|
},
|
|
{
|
|
file: packageJson.module,
|
|
format: 'esm',
|
|
sourcemap: true
|
|
}
|
|
],
|
|
plugins: [
|
|
peerDepsExternal(),
|
|
nodeResolve({
|
|
extensions: ['.css']
|
|
}),
|
|
commonjs(),
|
|
typescript({ tsconfig: './tsconfig.json' }),
|
|
terser()
|
|
]
|
|
},
|
|
{
|
|
input: 'dist/esm/index.d.ts',
|
|
output: [{ file: 'dist/index.d.ts', format: 'esm' }],
|
|
plugins: [dts.default()]
|
|
}
|
|
];
|