-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrollup.config.js
More file actions
36 lines (35 loc) · 959 Bytes
/
rollup.config.js
File metadata and controls
36 lines (35 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { resolve } from 'path';
import commonjsPlugin from 'rollup-plugin-commonjs';
import includePathsPlugin from 'rollup-plugin-includepaths';
// import multiInputPlugin from 'rollup-plugin-multi-input';
import peerDepsExternalPlugin from 'rollup-plugin-peer-deps-external';
import resolvePlugin from 'rollup-plugin-node-resolve';
import typescriptPlugin from 'rollup-plugin-typescript2';
export default {
input: 'src/index.ts',
output: {
dir: 'dist',
format: 'cjs',
exports: 'named',
interop: false,
sourcemap: true,
},
plugins: [
includePathsPlugin({
include: {},
paths: ['src/'],
external: [],
extensions: ['.js', '.json', '.ts'],
}),
peerDepsExternalPlugin({
packageJsonPath: resolve(__dirname, 'package.json'),
}),
// multiInput(),
resolvePlugin(),
typescriptPlugin({
rollupCommonJSResolveHack: true,
clean: true,
}),
commonjsPlugin(),
],
};