From 522f8d085ae44498654a5e39fac89ff081415d7f Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 17 Aug 2021 12:53:36 +0200 Subject: [PATCH] exclude the polyfill files as well from being transpiled as they are not used in the development build --- snowpack.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/snowpack.config.js b/snowpack.config.js index 2734aadc..5cc4222b 100644 --- a/snowpack.config.js +++ b/snowpack.config.js @@ -13,7 +13,13 @@ module.exports = { }, exclude: [ /* Avoid scanning scripts which use dev-dependencies and pull in babel, rollup, etc. */ - '**/node_modules/**/*', '**/scripts/**', '**/target/**', '**/prototypes/**', '**/src/matrix/storage/memory/**' + '**/node_modules/**/*', + '**/scripts/**', + '**/target/**', + '**/prototypes/**', + '**/src/matrix/storage/memory/**', + '**/src/platform/web/legacy-polyfill.js', + '**/src/platform/web/worker/polyfill.js' ], plugins: [ /* ... */