-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.js
More file actions
30 lines (28 loc) · 881 Bytes
/
babel.config.js
File metadata and controls
30 lines (28 loc) · 881 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
'use strict';
module.exports = (api) => {
api.cache(true);
return {
ignore: process.env.BABEL_ENV ? ['**/*.test.js', '**/__snapshots__', '**/__mocks__', '**/__fixtures__'] : [],
overrides: [
{
exclude: '**/inline-script.raw.js',
presets: [
['@moxy/babel-preset/lib', { react: true }],
],
plugins: [
['babel-plugin-inline-import', { extensions: ['.raw.js', '.raw'] }],
],
},
{
test: '**/inline-script.raw.js',
presets: [
['@moxy/babel-preset/end-project', {
targets: {
browsers: ['IE 11'],
},
}],
],
},
],
};
};