From efbc2ffe6a1ee5ec38a4396305561d6515d0943e Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 30 Aug 2024 17:21:18 +0800 Subject: node fixes, updates --- node_modules/@babel/helper-module-transforms/lib/get-module-name.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node_modules/@babel/helper-module-transforms/lib/get-module-name.js') diff --git a/node_modules/@babel/helper-module-transforms/lib/get-module-name.js b/node_modules/@babel/helper-module-transforms/lib/get-module-name.js index ee130792..b1a6ed70 100644 --- a/node_modules/@babel/helper-module-transforms/lib/get-module-name.js +++ b/node_modules/@babel/helper-module-transforms/lib/get-module-name.js @@ -35,7 +35,7 @@ function getModuleName(rootOpts, pluginOpts) { let moduleName = moduleRoot != null ? moduleRoot + "/" : ""; if (filenameRelative) { const sourceRootReplacer = sourceRoot != null ? new RegExp("^" + sourceRoot + "/?") : ""; - moduleName += filenameRelative.replace(sourceRootReplacer, "").replace(/\.(\w*?)$/, ""); + moduleName += filenameRelative.replace(sourceRootReplacer, "").replace(/\.\w*$/, ""); } moduleName = moduleName.replace(/\\/g, "/"); if (getModuleId) { -- cgit v1.2.3