question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

An array `package.json#source` should build these specified entries.

See original GitHub issue

Running parcel build my-package/ should build a.html, b.html if my-package/package.json contains:

{
  "source": ["a.html", "b.html"]
}

So be equivalent to cd my-package && parcel build a.html b.html.

The docs already say this should work: https://v2.parceljs.org/configuration/package-json/#source

Relevant code: https://github.com/parcel-bundler/parcel/blob/064ba0a166ea63ccd2b623dc11324d4cd7ffb526/packages/core/core/src/requests/EntryRequest.js#L98-L126

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AceTheCreatorcommented, Nov 28, 2020

@mischnic I’d love to pick this issue up.

0reactions
mischniccommented, Dec 18, 2020

You can also work on something else even before you PR is merged, if you want.

Read more comments on GitHub >

github_iconTop Results From Across the Web

package.json - npm Docs
This document is all you need to know about what's required in your package.json file. It must be actual JSON, not just a...
Read more >
Targets - Parcel
“Entries” are the files that Parcel starts at when building your source code. They can be specified on the CLI, or using the...
Read more >
package.json - Parcel
Specify the entry points for your source code which gets mapped to your targets, can be a string or an array. package.json: {...
Read more >
The Basics of Package.json - NodeSource
The repository property of a package.json is an array that defines where the source code for the module lives. Typically, this would be...
Read more >
What's what? - Package.json cheatsheet! - Arek Nawo
This array of strings will make your package rank higher when your possible users will search through NPM listings by keywords that much...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found