forked from BrowserBox/BrowserBox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.js
More file actions
40 lines (39 loc) · 885 Bytes
/
rollup.config.js
File metadata and controls
40 lines (39 loc) · 885 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
import babel from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
export default {
plugins: [
/*
{
transform ( code, id ) {
console.log( id );
console.log( code );
// not returning anything, so doesn't affect bundle
}
},
*/
commonjs(),
resolve(),
babel({
"babelrc": false,
"exclude": ['node_modules/@babel/runtime/**', 'public/voodoo/node_modules/@babel/runtime/**'],
"babelHelpers": "runtime",
"plugins": [
"@babel/plugin-transform-runtime"
],
"presets": [
[
"@babel/preset-env",
{
targets: {
browsers: [ "safari >= 9" ]
}
}
]
]
}),
],
context: {
[require.resolve('whatwg-fetch')]: 'fetch'
}
};