From be5761d832d1a9d145b120b106f5b5144381475e Mon Sep 17 00:00:00 2001 From: Thomas Blum Date: Thu, 10 Nov 2022 08:38:38 +0100 Subject: [PATCH] Update scripts.js Behebt den Fehler: SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' Gefunden auf https://stackoverflow.com/questions/40029113/syntaxerror-import-and-export-may-appear-only-with-sourcetype-module-g/56608843#56608843 --- src/tasks/scripts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tasks/scripts.js b/src/tasks/scripts.js index 3e5b690..645ba63 100644 --- a/src/tasks/scripts.js +++ b/src/tasks/scripts.js @@ -36,7 +36,8 @@ class ScriptsTask extends Task { useBuiltIns: "entry", corejs: 3, }] - ] + ], + global: true, }); const bundle = () => b.bundle()