Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/parcel-bundler/parcel

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/parcel-bundler/parcel

  • v2.13.0+incompatible
  • Source
  • Go
  • Socket score

Version published
Created
Source

parcel-query

A REPL to investigate the Parcel graphs in the cache ("offline", after the build).

Installation

Clone and run yarn, then cd packages/dev/query && yarn link to make the parcel-query binary globally available.

Usage

Call .help to view a list of commands.

In a project root containing a .parcel-cache folder:

$ parcel-query
> .findBundleReason 27494aebac508bd8 TJbGI
# Asset is main entry of bundle: false
# Asset is an entry of bundle: false
# Incoming dependencies contained in the bundle:
{
  id: '3fd182662e2a6fa9',
  type: 'dependency',
  value: {
    specifier: '../../foo',
    specifierType: 0,
...

In the .getAsset 3Xzt5 variant, no quotes/parenthesis are needed. Alternatively, you can use proper JS: getAsset("3Xzt5").

The variables assetGraph and bundleGraph contain the deserialized objects.

For a single query, the command (which has to be a JS call) can be specified as a CLI parameter (the disadvantage here is that the graphs have to be loaded on every call as opposed to once when starting the REPL):

$ parcel-query 'findBundleReason("b0696febf20b57ce", "bNAUZ")'

FAQs

Package last updated on 12 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc