From f04b01ba4e902073488d56203476854c79702772 Mon Sep 17 00:00:00 2001 From: Ryan Ling Date: Fri, 11 Dec 2020 08:35:35 +1100 Subject: [PATCH] Fix Babel `--out-dir requires filenames` error (#291) It looks like this no longer works without an explicit argument. https://babeljs.io/docs/en/options#sourcemaps --- .changeset/kind-wombats-care.md | 5 +++++ src/cli/build/babel.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/kind-wombats-care.md diff --git a/.changeset/kind-wombats-care.md b/.changeset/kind-wombats-care.md new file mode 100644 index 000000000..5c743d7c3 --- /dev/null +++ b/.changeset/kind-wombats-care.md @@ -0,0 +1,5 @@ +--- +'skuba': patch +--- + +**build:** Fix `--out-dir requires filenames` error on experimental Babel builds diff --git a/src/cli/build/babel.ts b/src/cli/build/babel.ts index e684112c4..24554a57a 100644 --- a/src/cli/build/babel.ts +++ b/src/cli/build/babel.ts @@ -11,5 +11,6 @@ export const babel = () => '--out-dir', 'lib', '--source-maps', + 'true', 'src', );