-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbabel.config.js
28 lines (26 loc) · 857 Bytes
/
babel.config.js
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
'use strict';
module.exports = function (api) {
api.cache(true);
return {
presets: [
['@babel/preset-env', {'modules': 'commonjs',
"exclude": ['@babel/plugin-transform-typeof-symbol']}],
],
plugins: [
['@babel/plugin-transform-modules-commonjs', {
loose: true,
strictMode: false,
}],
['@babel/plugin-transform-runtime', {'corejs': 3}],
["@babel/plugin-proposal-decorators", { "legacy": true }],
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-object-rest-spread',
'./babel-plugin-expose-private-functions-and-variables',
],
overrides: [{
test: /[\\/]ext[\\/]//* treat as script for 3rd-party library */,
sourceType: 'script'
}],
exclude: /pdfviewer\/ext/
};
};