parcel 2.0.0-dev.1563 → 2.0.0-dev.1571

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.
Files changed (2) hide show
  1. package/lib/cli.js +3 -5
  2. package/package.json +15 -15
package/lib/cli.js CHANGED
@@ -183,7 +183,6 @@ const commonOptions = {
183
183
  '--feature-flag <name=value>': ['sets the value of a feature flag', (value, previousValue) => {
184
184
  let [name, val] = value.split('=');
185
185
  if (name in _featureFlags().DEFAULT_FEATURE_FLAGS) {
186
- var _featureFlagValue;
187
186
  let featureFlagValue;
188
187
  if (typeof _featureFlags().DEFAULT_FEATURE_FLAGS[name] === 'boolean') {
189
188
  if (val !== 'true' && val !== 'false') {
@@ -191,7 +190,7 @@ const commonOptions = {
191
190
  }
192
191
  featureFlagValue = val === 'true';
193
192
  }
194
- previousValue[name] = (_featureFlagValue = featureFlagValue) !== null && _featureFlagValue !== void 0 ? _featureFlagValue : String(val);
193
+ previousValue[name] = featureFlagValue ?? String(val);
195
194
  } else {
196
195
  _logger().INTERNAL_ORIGINAL_CONSOLE.warn(`Unknown feature flag ${name} specified, it will be ignored`);
197
196
  }
@@ -383,7 +382,6 @@ function parseOptionInt(value) {
383
382
  return parsedValue;
384
383
  }
385
384
  async function normalizeOptions(command, inputFS) {
386
- var _command$autoinstall, _command$sourceMaps;
387
385
  let nodeEnv;
388
386
  if (command.name() === 'build') {
389
387
  nodeEnv = process.env.NODE_ENV || 'production';
@@ -490,7 +488,7 @@ async function normalizeOptions(command, inputFS) {
490
488
  shouldContentHash: hmrOptions ? false : command.contentHash,
491
489
  serveOptions,
492
490
  targets: command.target.length > 0 ? command.target : null,
493
- shouldAutoInstall: (_command$autoinstall = command.autoinstall) !== null && _command$autoinstall !== void 0 ? _command$autoinstall : true,
491
+ shouldAutoInstall: command.autoinstall ?? true,
494
492
  logLevel: command.logLevel,
495
493
  shouldProfile: command.profile,
496
494
  shouldTrace: command.trace,
@@ -507,7 +505,7 @@ async function normalizeOptions(command, inputFS) {
507
505
  additionalReporters,
508
506
  defaultTargetOptions: {
509
507
  shouldOptimize: command.optimize != null ? command.optimize : mode === 'production',
510
- sourceMaps: (_command$sourceMaps = command.sourceMaps) !== null && _command$sourceMaps !== void 0 ? _command$sourceMaps : true,
508
+ sourceMaps: command.sourceMaps ?? true,
511
509
  shouldScopeHoist: command.scopeHoist,
512
510
  publicUrl: command.publicUrl,
513
511
  distDir: command.distDir
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parcel",
3
- "version": "2.0.0-dev.1563+c422b7ff3",
3
+ "version": "2.0.0-dev.1571+c9a0ab031",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -18,21 +18,21 @@
18
18
  "main": "lib/bin.js",
19
19
  "source": "src/bin.js",
20
20
  "engines": {
21
- "node": ">= 12.0.0"
21
+ "node": ">= 16.0.0"
22
22
  },
23
23
  "dependencies": {
24
- "@parcel/config-default": "2.0.0-dev.1565+c422b7ff3",
25
- "@parcel/core": "2.0.0-dev.1563+c422b7ff3",
26
- "@parcel/diagnostic": "2.0.0-dev.1565+c422b7ff3",
27
- "@parcel/events": "2.0.0-dev.1565+c422b7ff3",
28
- "@parcel/feature-flags": "2.12.1-dev.3188+c422b7ff3",
29
- "@parcel/fs": "2.0.0-dev.1565+c422b7ff3",
30
- "@parcel/logger": "2.0.0-dev.1565+c422b7ff3",
31
- "@parcel/package-manager": "2.0.0-dev.1565+c422b7ff3",
32
- "@parcel/reporter-cli": "2.0.0-dev.1565+c422b7ff3",
33
- "@parcel/reporter-dev-server": "2.0.0-dev.1565+c422b7ff3",
34
- "@parcel/reporter-tracer": "2.12.1-dev.3188+c422b7ff3",
35
- "@parcel/utils": "2.0.0-dev.1565+c422b7ff3",
24
+ "@parcel/config-default": "2.0.0-dev.1573+c9a0ab031",
25
+ "@parcel/core": "2.0.0-dev.1571+c9a0ab031",
26
+ "@parcel/diagnostic": "2.0.0-dev.1573+c9a0ab031",
27
+ "@parcel/events": "2.0.0-dev.1573+c9a0ab031",
28
+ "@parcel/feature-flags": "2.12.1-dev.3196+c9a0ab031",
29
+ "@parcel/fs": "2.0.0-dev.1573+c9a0ab031",
30
+ "@parcel/logger": "2.0.0-dev.1573+c9a0ab031",
31
+ "@parcel/package-manager": "2.0.0-dev.1573+c9a0ab031",
32
+ "@parcel/reporter-cli": "2.0.0-dev.1573+c9a0ab031",
33
+ "@parcel/reporter-dev-server": "2.0.0-dev.1573+c9a0ab031",
34
+ "@parcel/reporter-tracer": "2.12.1-dev.3196+c9a0ab031",
35
+ "@parcel/utils": "2.0.0-dev.1573+c9a0ab031",
36
36
  "chalk": "^4.1.0",
37
37
  "commander": "^7.0.0",
38
38
  "get-port": "^4.2.0"
@@ -41,5 +41,5 @@
41
41
  "@babel/core": "^7.22.11",
42
42
  "@parcel/babel-register": "2.12.0"
43
43
  },
44
- "gitHead": "c422b7ff3c383779781ea5169d86191508b01e5b"
44
+ "gitHead": "c9a0ab031986a896a5991de16420b12988d013cd"
45
45
  }