From 1eb2128affb9a67046665af352656c5306bbd088 Mon Sep 17 00:00:00 2001 From: Titouan Mathis Date: Wed, 10 Jul 2024 18:38:40 +0200 Subject: [PATCH] Fix an error where uninitialized variables were accessed --- packages/playground/src/lib/presets/playground.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/playground/src/lib/presets/playground.ts b/packages/playground/src/lib/presets/playground.ts index 86d7c00..268edce 100644 --- a/packages/playground/src/lib/presets/playground.ts +++ b/packages/playground/src/lib/presets/playground.ts @@ -89,6 +89,8 @@ export function playgroundPreset(options?: PartialDeep) }, }; + delete webpackConfig.optimization?.runtimeChunk; + if (!isDefined(webpackConfig.entry['js/app'])) { webpackConfig.entry['js/app'] = '@studiometa/playground/dist/front/js/app.js'; }