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 = 'My app

Hello world!

'; const outputMultiple = - 'My app

Hello world!

'; + 'My app

Hello world!

'; const outputCustom = 'My app

Hello world!

'; const outputLegacy = 'My app

Hello world!

'; const outputLegacyAndPolyfills = - 'My app

Hello world!

'; + 'My app

Hello world!

'; const outputExternal = - 'My app

Hello world!

'; + 'My app

Hello world!

'; describe('generate-index-html', () => { it('generates a index.html based on default configuration', () => { diff --git a/packages/building-utils/test/index-html/polyfills.test.js b/packages/building-utils/test/index-html/polyfills.test.js index 811350e34..a8d44e91e 100644 --- a/packages/building-utils/test/index-html/polyfills.test.js +++ b/packages/building-utils/test/index-html/polyfills.test.js @@ -29,7 +29,7 @@ describe('polyfills', () => { }, { code: undefined, - hash: '95138a44bb40831d28d42e45a2bf1bc6', + hash: '25d91ed49dc86803b0aa17858b018737', name: 'fetch', nomodule: false, sourcemap: undefined,