-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.js
More file actions
41 lines (39 loc) · 907 Bytes
/
Copy pathrollup.config.js
File metadata and controls
41 lines (39 loc) · 907 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
37
38
39
40
41
import babel from 'rollup-plugin-babel'
import resolve from 'rollup-plugin-node-resolve'
import rollupJson from 'rollup-plugin-json'
import commonjs from 'rollup-plugin-commonjs'
import bundleSize from 'rollup-plugin-bundle-size'
const outputDir = 'dist/vuex-orm-rest-framework'
export default {
input: 'src/index.js',
output: [
{
file: `${outputDir}.cjs.js`,
format: 'cjs',
exports: 'named'
},
{
file: `${outputDir}.esm.js`,
format: 'esm',
exports: 'named'
},
{
name: 'VuexOrmRestFramework',
file: `${outputDir}.umd.js`,
format: 'umd',
exports: 'named'
}
],
plugins: [
resolve({ jsnext: true, preferBuiltins: true, browser: true }),
commonjs({
include: /node_modules/
}),
rollupJson(),
babel({
runtimeHelpers: true,
exclude: 'node_modules/**'
}),
bundleSize()
]
}