From f4975dfd09d456eca9ead9c395bdb92c5bb45508 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 24 Nov 2020 12:06:05 +0100 Subject: [PATCH] fix nuxt dev --- packages/nuxt3/src/webpack/plugins/externals.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt3/src/webpack/plugins/externals.ts b/packages/nuxt3/src/webpack/plugins/externals.ts index 088e03acaa..e1b951fc81 100644 --- a/packages/nuxt3/src/webpack/plugins/externals.ts +++ b/packages/nuxt3/src/webpack/plugins/externals.ts @@ -95,7 +95,7 @@ function containsPattern (arr, val) { ) } -const scopedModuleRegex = /@[a-zA-Z0-9][\\w-.]+\/[a-zA-Z0-9][\\w-.]+([a-zA-Z0-9./]+)?/g +const scopedModuleRegex = /@[a-zA-Z0-9][.\\w-]+\/[a-zA-Z0-9][.\\w-]+([a-zA-Z0-9./]+)?/g function getModuleName (request, includeAbsolutePaths) { let req = request