Skip to content

Commit

Permalink
fix($compile): prevent babel from transpiling non-module scripts in d…
Browse files Browse the repository at this point in the history
…efault_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
  • Loading branch information
Jean-Luc Martin authored and tmcw committed Aug 22, 2017
1 parent 1ba5f03 commit 1286a1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .babelrc
@@ -1,4 +1,7 @@
{
"presets": ["es2015", "stage-0", "flow"],
"plugins": ["syntax-async-functions"]
"plugins": ["syntax-async-functions"],
"ignore": [
"**/default_theme/assets/*"
]
}

0 comments on commit 1286a1f

Please sign in to comment.