forked from DesignByOnyx/stencil-storybook-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbabel.config.js
34 lines (33 loc) · 824 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
29
30
31
32
33
34
module.exports = (api) => {
api.cache(true);
return {
presets: [
[
'@babel/env',
{
targets: {
browsers: 'Last 2 Chrome versions, Firefox ESR',
node: '8.9',
},
},
],
'@babel/preset-typescript',
],
plugins: [
'dynamic-import-node'
],
env: {
build: {
ignore: [
'**/*.test.tsx',
'**/*.test.ts',
'**/*.story.tsx',
'__snapshots__',
'__tests__',
'__stories__',
],
},
},
ignore: ['node_modules'],
};
};