Skip to content

Commit 1286a1f

Browse files
Jean-Luc Martintmcw
Jean-Luc Martin
authored andcommitted
fix($compile): prevent babel from transpiling non-module scripts in default_theme's assets
Transpiling the assets in the default theme was causing `this` to be transpiled to `undefined`. The Babel config now ignores those files. 888
1 parent 1ba5f03 commit 1286a1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.babelrc

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"presets": ["es2015", "stage-0", "flow"],
3-
"plugins": ["syntax-async-functions"]
3+
"plugins": ["syntax-async-functions"],
4+
"ignore": [
5+
"**/default_theme/assets/*"
6+
]
47
}

0 commit comments

Comments
 (0)