diff --git a/packages/building-utils/index-html/polyfills.js b/packages/building-utils/index-html/polyfills.js index 02f38cb3a..e3058b33d 100644 --- a/packages/building-utils/index-html/polyfills.js +++ b/packages/building-utils/index-html/polyfills.js @@ -51,7 +51,7 @@ function getPolyfills(config) { instructions.push({ name: 'fetch', test: "!('fetch' in window)", - path: require.resolve('whatwg-fetch/fetch.js'), + path: require.resolve('whatwg-fetch/dist/fetch.umd.js'), }); } catch (error) { throw new Error( diff --git a/packages/building-utils/test/index-html/create-index-html.test.js b/packages/building-utils/test/index-html/generate-index-html.test.js similarity index 96% rename from packages/building-utils/test/index-html/create-index-html.test.js rename to packages/building-utils/test/index-html/generate-index-html.test.js index 6e15b55ce..186bf1327 100644 --- a/packages/building-utils/test/index-html/create-index-html.test.js +++ b/packages/building-utils/test/index-html/generate-index-html.test.js @@ -31,15 +31,15 @@ const outputDefault = const outputCoreJs = '