From 1286a1ff8725825cfceca378907fcd81bb53ec35 Mon Sep 17 00:00:00 2001 From: Jean-Luc Martin Date: Mon, 21 Aug 2017 17:11:41 -0400 Subject: [PATCH] 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 --- .babelrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.babelrc b/.babelrc index 9597d17..dcbdcf1 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,7 @@ { "presets": ["es2015", "stage-0", "flow"], - "plugins": ["syntax-async-functions"] + "plugins": ["syntax-async-functions"], + "ignore": [ + "**/default_theme/assets/*" + ] }