-
Notifications
You must be signed in to change notification settings - Fork 0
/
.babelrc
50 lines (47 loc) · 1.08 KB
/
.babelrc
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
42
43
44
45
46
47
48
49
50
/**
* Babel has a bug which requires a workaround for `export * from '...'` found in `./src/doc/index.js`.
* See this issue: https://github.com/babel/babel/issues/2877
* Solution applied is found here: https://github.com/babel/babel/issues/2877#issuecomment-280297439
* `passPerPreset` is enabled to run `transform-runtime` then the standard presets.
*/
{
"passPerPreset": true,
"presets":
[
{ "plugins": [ "transform-runtime" ] },
{
"passPerPreset": false,
"presets": [ "latest", "stage-2" ]
}
],
"plugins":
[
"add-module-exports",
["module-resolver", {
"root": ["."],
"alias":
{
"tjsdoc-docs-common/src": "tjsdoc-docs-common/dist"
}
}]
],
"env":
{
"tjsdoc-dev":
{
"plugins":
[
"add-module-exports",
["module-resolver", {
"root": ["."],
"cwd": "babelrc",
"alias":
{
"tjsdoc-docs-common": "../tjsdoc-docs-common/src",
"tjsdoc-docs-common/src": "../tjsdoc-docs-common/src"
}
}]
]
}
}
}