From bbf27017f2163ca0d202d6ef71fbbec90cdfcb1b Mon Sep 17 00:00:00 2001 From: Stef Schenkelaars Date: Fri, 17 Dec 2021 11:49:22 +0100 Subject: [PATCH] fix(plugin-legacy): Restore guessable polyfill id The name of the polyfill file is determined by a hardcoded string. Some packages based on this plugin rely on this predefined name. This name was changed in 3127219bfa4129538fe5448c86b7e9aa1fe4d9ea to prevent resolving files which don't exist. This commit changes that behaviour to restore the predefined name. --- packages/plugin-legacy/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-legacy/index.js b/packages/plugin-legacy/index.js index 2267cd9cf82b42..bfa6ee491bcbf6 100644 --- a/packages/plugin-legacy/index.js +++ b/packages/plugin-legacy/index.js @@ -596,7 +596,7 @@ async function buildPolyfillChunk( bundle[polyfillChunk.name] = polyfillChunk } -const polyfillId = '\0vite/legacy-polyfills' +const polyfillId = 'vite/legacy-polyfills' /** * @param {Set} imports