Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit a63f5bd

Browse files
committed
Op npm param.
1 parent 2ba9c64 commit a63f5bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
5959
if (path) {
6060
const map = {};
6161
const files = {};
62-
let match = /[?&]npm=([\w./"'@:{}\-?=]+)/.exec(srcSearch);
62+
let match = /[?&]npm=([\w./"'@:{}\-?=, ]+)/.exec(srcSearch);
6363
if (match) {
6464
try {
6565
match[1] = match[1].replace(/'/g, '"');

dist/loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
const map: Record<string, string> = {};
6969
const files: Record<string, any> = {};
7070
// --- URL 传入的 npm 版本号 ---
71-
let match = /[?&]npm=([\w./"'@:{}\-?=]+)/.exec(srcSearch);
71+
let match = /[?&]npm=([\w./"'@:{}\-?=, ]+)/.exec(srcSearch);
7272
if (match) {
7373
try {
7474
match[1] = match[1].replace(/'/g, '"');

0 commit comments

Comments
 (0)