parcel 2.16.3 → 2.16.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +8 -4
- package/package.json +15 -15
- package/src/cli.js +4 -1
package/lib/cli.js
CHANGED
|
@@ -205,7 +205,8 @@ var hmrOptions = {
|
|
|
205
205
|
'--cert <path>': 'path to certificate to use with HTTPS',
|
|
206
206
|
'--key <path>': 'path to private key to use with HTTPS',
|
|
207
207
|
'--hmr-port <port>': ['hot module replacement port', process.env.HMR_PORT],
|
|
208
|
-
'--hmr-host <host>': ['hot module replacement host', process.env.HMR_HOST]
|
|
208
|
+
'--hmr-host <host>': ['hot module replacement host', process.env.HMR_HOST],
|
|
209
|
+
'--no-cors': 'disable cors'
|
|
209
210
|
};
|
|
210
211
|
function applyOptions(cmd, options) {
|
|
211
212
|
for (let opt in options) {
|
|
@@ -437,13 +438,15 @@ async function normalizeOptions(command, inputFS) {
|
|
|
437
438
|
}
|
|
438
439
|
if (command.name() === 'serve') {
|
|
439
440
|
let {
|
|
440
|
-
publicUrl
|
|
441
|
+
publicUrl,
|
|
442
|
+
cors
|
|
441
443
|
} = command;
|
|
442
444
|
serveOptions = {
|
|
443
445
|
https,
|
|
444
446
|
port,
|
|
445
447
|
host,
|
|
446
|
-
publicUrl
|
|
448
|
+
publicUrl,
|
|
449
|
+
cors
|
|
447
450
|
};
|
|
448
451
|
}
|
|
449
452
|
let hmrOptions = null;
|
|
@@ -452,7 +455,8 @@ async function normalizeOptions(command, inputFS) {
|
|
|
452
455
|
let hmrhost = command.hmrHost ? command.hmrHost : host;
|
|
453
456
|
hmrOptions = {
|
|
454
457
|
port: hmrport,
|
|
455
|
-
host: hmrhost
|
|
458
|
+
host: hmrhost,
|
|
459
|
+
cors: command.cors
|
|
456
460
|
};
|
|
457
461
|
}
|
|
458
462
|
if (command.detailedReport === true) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "parcel",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.4",
|
|
4
4
|
"description": "Blazing fast, zero configuration web application bundler",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -21,25 +21,25 @@
|
|
|
21
21
|
"node": ">= 16.0.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@parcel/config-default": "2.16.
|
|
25
|
-
"@parcel/core": "2.16.
|
|
26
|
-
"@parcel/diagnostic": "2.16.
|
|
27
|
-
"@parcel/events": "2.16.
|
|
28
|
-
"@parcel/feature-flags": "2.16.
|
|
29
|
-
"@parcel/fs": "2.16.
|
|
30
|
-
"@parcel/logger": "2.16.
|
|
31
|
-
"@parcel/package-manager": "2.16.
|
|
32
|
-
"@parcel/reporter-cli": "2.16.
|
|
33
|
-
"@parcel/reporter-dev-server": "2.16.
|
|
34
|
-
"@parcel/reporter-tracer": "2.16.
|
|
35
|
-
"@parcel/utils": "2.16.
|
|
24
|
+
"@parcel/config-default": "2.16.4",
|
|
25
|
+
"@parcel/core": "2.16.4",
|
|
26
|
+
"@parcel/diagnostic": "2.16.4",
|
|
27
|
+
"@parcel/events": "2.16.4",
|
|
28
|
+
"@parcel/feature-flags": "2.16.4",
|
|
29
|
+
"@parcel/fs": "2.16.4",
|
|
30
|
+
"@parcel/logger": "2.16.4",
|
|
31
|
+
"@parcel/package-manager": "2.16.4",
|
|
32
|
+
"@parcel/reporter-cli": "2.16.4",
|
|
33
|
+
"@parcel/reporter-dev-server": "2.16.4",
|
|
34
|
+
"@parcel/reporter-tracer": "2.16.4",
|
|
35
|
+
"@parcel/utils": "2.16.4",
|
|
36
36
|
"chalk": "^4.1.2",
|
|
37
37
|
"commander": "^12.1.0",
|
|
38
38
|
"get-port": "^4.2.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@babel/core": "^7.22.11",
|
|
42
|
-
"@parcel/babel-register": "2.16.
|
|
42
|
+
"@parcel/babel-register": "2.16.4"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "59484858a1a0bcbb71f74088956bb437a2db6505"
|
|
45
45
|
}
|
package/src/cli.js
CHANGED
|
@@ -173,6 +173,7 @@ var hmrOptions = {
|
|
|
173
173
|
'--key <path>': 'path to private key to use with HTTPS',
|
|
174
174
|
'--hmr-port <port>': ['hot module replacement port', process.env.HMR_PORT],
|
|
175
175
|
'--hmr-host <host>': ['hot module replacement host', process.env.HMR_HOST],
|
|
176
|
+
'--no-cors': 'disable cors',
|
|
176
177
|
};
|
|
177
178
|
|
|
178
179
|
function applyOptions(cmd, options) {
|
|
@@ -484,13 +485,14 @@ async function normalizeOptions(
|
|
|
484
485
|
}
|
|
485
486
|
|
|
486
487
|
if (command.name() === 'serve') {
|
|
487
|
-
let {publicUrl} = command;
|
|
488
|
+
let {publicUrl, cors} = command;
|
|
488
489
|
|
|
489
490
|
serveOptions = {
|
|
490
491
|
https,
|
|
491
492
|
port,
|
|
492
493
|
host,
|
|
493
494
|
publicUrl,
|
|
495
|
+
cors,
|
|
494
496
|
};
|
|
495
497
|
}
|
|
496
498
|
|
|
@@ -502,6 +504,7 @@ async function normalizeOptions(
|
|
|
502
504
|
hmrOptions = {
|
|
503
505
|
port: hmrport,
|
|
504
506
|
host: hmrhost,
|
|
507
|
+
cors: command.cors,
|
|
505
508
|
};
|
|
506
509
|
}
|
|
507
510
|
|