parcel 2.8.3 → 2.8.4-nightly.0

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 (3) hide show
  1. package/lib/cli.js +11 -3
  2. package/package.json +14 -14
  3. package/src/cli.js +10 -3
package/lib/cli.js CHANGED
@@ -104,8 +104,6 @@ var _package = require("../package.json");
104
104
 
105
105
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
106
106
 
107
- require('v8-compile-cache');
108
-
109
107
  const program = new (_commander().default.Command)(); // Exit codes in response to signals are traditionally
110
108
  // 128 + signal value
111
109
  // https://tldp.org/LDP/abs/html/exitcodes.html
@@ -178,7 +176,8 @@ const commonOptions = {
178
176
  '--log-level <level>': new (_commander().default.Option)('--log-level <level>', 'set the log level').choices(['none', 'error', 'warn', 'info', 'verbose']),
179
177
  '--dist-dir <dir>': 'output directory to write to when unspecified by targets',
180
178
  '--no-autoinstall': 'disable autoinstall',
181
- '--profile': 'enable build profiling',
179
+ '--profile': 'enable sampling build profiling',
180
+ '--trace': 'enable build tracing',
182
181
  '-V, --version': 'output the version number',
183
182
  '--detailed-report [count]': ['print the asset timings and sizes in the build report', parseOptionInt],
184
183
  '--reporter <name>': ['additional reporters to run', (val, acc) => {
@@ -504,6 +503,14 @@ async function normalizeOptions(command, inputFS) {
504
503
  packageName,
505
504
  resolveFrom: _path().default.join(inputFS.cwd(), 'index')
506
505
  }))];
506
+
507
+ if (command.trace) {
508
+ additionalReporters.unshift({
509
+ packageName: '@parcel/reporter-tracer',
510
+ resolveFrom: __filename
511
+ });
512
+ }
513
+
507
514
  let mode = command.name() === 'build' ? 'production' : 'development';
508
515
  return {
509
516
  shouldDisableCache: command.cache === false,
@@ -517,6 +524,7 @@ async function normalizeOptions(command, inputFS) {
517
524
  shouldAutoInstall: (_command$autoinstall = command.autoinstall) !== null && _command$autoinstall !== void 0 ? _command$autoinstall : true,
518
525
  logLevel: command.logLevel,
519
526
  shouldProfile: command.profile,
527
+ shouldTrace: command.trace,
520
528
  shouldBuildLazily: command.lazy,
521
529
  shouldBundleIncrementally: process.env.PARCEL_INCREMENTAL_BUNDLING === 'false' ? false : true,
522
530
  detailedReport: command.detailedReport != null ? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parcel",
3
- "version": "2.8.3",
3
+ "version": "2.8.4-nightly.0+7b79c6d",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -21,24 +21,24 @@
21
21
  "node": ">= 12.0.0"
22
22
  },
23
23
  "dependencies": {
24
- "@parcel/config-default": "2.8.3",
25
- "@parcel/core": "2.8.3",
26
- "@parcel/diagnostic": "2.8.3",
27
- "@parcel/events": "2.8.3",
28
- "@parcel/fs": "2.8.3",
29
- "@parcel/logger": "2.8.3",
30
- "@parcel/package-manager": "2.8.3",
31
- "@parcel/reporter-cli": "2.8.3",
32
- "@parcel/reporter-dev-server": "2.8.3",
33
- "@parcel/utils": "2.8.3",
24
+ "@parcel/config-default": "2.8.4-nightly.0+7b79c6d",
25
+ "@parcel/core": "2.8.4-nightly.0+7b79c6d",
26
+ "@parcel/diagnostic": "2.8.4-nightly.0+7b79c6d",
27
+ "@parcel/events": "2.8.4-nightly.0+7b79c6d",
28
+ "@parcel/fs": "2.8.4-nightly.0+7b79c6d",
29
+ "@parcel/logger": "2.8.4-nightly.0+7b79c6d",
30
+ "@parcel/package-manager": "2.8.4-nightly.0+7b79c6d",
31
+ "@parcel/reporter-cli": "2.8.4-nightly.0+7b79c6d",
32
+ "@parcel/reporter-dev-server": "2.8.4-nightly.0+7b79c6d",
33
+ "@parcel/reporter-tracer": "2.8.4-nightly.0+7b79c6d",
34
+ "@parcel/utils": "2.8.4-nightly.0+7b79c6d",
34
35
  "chalk": "^4.1.0",
35
36
  "commander": "^7.0.0",
36
- "get-port": "^4.2.0",
37
- "v8-compile-cache": "^2.0.0"
37
+ "get-port": "^4.2.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@babel/core": "^7.0.0",
41
41
  "@parcel/babel-register": "2.8.3"
42
42
  },
43
- "gitHead": "349a6caf40ec8abb6a49fcae0765f8f8deb2073d"
43
+ "gitHead": "7b79c6d69ffabef89810a8db61e9abdeb70d6990"
44
44
  }
package/src/cli.js CHANGED
@@ -13,8 +13,6 @@ import path from 'path';
13
13
  import getPort from 'get-port';
14
14
  import {version} from '../package.json';
15
15
 
16
- require('v8-compile-cache');
17
-
18
16
  const program = new commander.Command();
19
17
 
20
18
  // Exit codes in response to signals are traditionally
@@ -88,7 +86,8 @@ const commonOptions = {
88
86
  '--dist-dir <dir>':
89
87
  'output directory to write to when unspecified by targets',
90
88
  '--no-autoinstall': 'disable autoinstall',
91
- '--profile': 'enable build profiling',
89
+ '--profile': 'enable sampling build profiling',
90
+ '--trace': 'enable build tracing',
92
91
  '-V, --version': 'output the version number',
93
92
  '--detailed-report [count]': [
94
93
  'print the asset timings and sizes in the build report',
@@ -464,6 +463,13 @@ async function normalizeOptions(
464
463
  })),
465
464
  ];
466
465
 
466
+ if (command.trace) {
467
+ additionalReporters.unshift({
468
+ packageName: '@parcel/reporter-tracer',
469
+ resolveFrom: __filename,
470
+ });
471
+ }
472
+
467
473
  let mode = command.name() === 'build' ? 'production' : 'development';
468
474
  return {
469
475
  shouldDisableCache: command.cache === false,
@@ -477,6 +483,7 @@ async function normalizeOptions(
477
483
  shouldAutoInstall: command.autoinstall ?? true,
478
484
  logLevel: command.logLevel,
479
485
  shouldProfile: command.profile,
486
+ shouldTrace: command.trace,
480
487
  shouldBuildLazily: command.lazy,
481
488
  shouldBundleIncrementally:
482
489
  process.env.PARCEL_INCREMENTAL_BUNDLING === 'false' ? false : true,