From 374f56ff442e9d2a82fb0c0773db5e734afd4bee Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Thu, 13 Aug 2020 10:02:35 -0700 Subject: [PATCH] fix(examples): use ./ prefix on babel config file Otherwise if it's in a subfolder, babel will think it's an npm package --- docs/index.md | 2 +- examples/webapp/differential_loading.bzl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 163296e230..163a50f89b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -79,7 +79,7 @@ babel( args = [ "app.js", "--config-file", - "$(execpath es5.babelrc)", + "./$(execpath es5.babelrc)", "--out-file", "$(execpath app.es5.js)", ], diff --git a/examples/webapp/differential_loading.bzl b/examples/webapp/differential_loading.bzl index 7268bb8874..c387dc207c 100644 --- a/examples/webapp/differential_loading.bzl +++ b/examples/webapp/differential_loading.bzl @@ -36,7 +36,7 @@ def differential_loading(name, entry_point, srcs): args = [ "$(execpath %s_chunks)" % name, "--config-file", - "$(execpath es5.babelrc)", + "./$(execpath es5.babelrc)", "--out-dir", "$(@D)", ],