Skip to content

Commit f884e1f

Browse files
jeffposnickphilipwalton
authored andcommitted
Bypass local Babel config files in workbox-build's bundling step (#2113)
* Disable local Babel config files * Test fix
1 parent c79f07e commit f884e1f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/workbox-build/src/lib/bundle.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ module.exports = async ({
3434
resolve(),
3535
replace({'process.env.NODE_ENV': JSON.stringify(mode)}),
3636
babel({
37+
// Disable the logic that checks for local Babel config files:
38+
// https://github.com/GoogleChrome/workbox/issues/2111
39+
babelrc: false,
40+
configFile: false,
3741
presets: [[presetEnv, {
3842
targets: {
3943
browsers: babelPresetEnvTargets,

test/workbox-build/node/lib/bundle.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ describe(`[workbox-build] lib/bundle.js`, function() {
6868
});
6969

7070
expect(stubs['rollup-plugin-babel'].args).to.eql([[{
71+
babelrc: false,
72+
configFile: false,
7173
presets: [[stubs['@babel/preset-env'], {
7274
targets: {
7375
browsers: babelPresetEnvTargets,

0 commit comments

Comments
 (0)