-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC][V2] Support glob at package.json#source #3821
Comments
This definitely a problem I encounter recently. Does anyone know why this bug hasn't been fixed? It has been a year since then right? Btw, my problem can not be solved by listing all the possible entries in I believe glob for |
Let me just state this is a +1 issue for me too. My use case is having parcel build all the LESS files across multiple services and output the CSS in the same folder as the source less file so that Blazor will apply CSS Isolation (CSS Modules to the rest of the world) correctly. I need the ability to set multiple targets each with their own source (as a glob) and distDir which cannot be done in a single CLI command as far as I can tell. I guess as a workaround I can use a library like npm-run-all and run all the builds/watches in parallel it would just be nice to have glob support in package.json#targets.*.source and have one parcel thread figure out all the caching build/watch scenarios. |
@mischnic I see a |
Well, if you start multiple instances of Parcel, they can't all use the same port. |
Hey, |
I too am curious bout this getting resolved... as a newb to bundling I was enticed by Parcel for building a component library with less fuss than something like WebPack which made me want to pull my hair out... but this glob support is the one roadblock to smooth building for me |
I too am facing a problem where I need to specify multiple files in |
It's been open for 4+ years I think you can infer it will not be supported on any reasonable timeline at this point. |
Sadly you're likely correct |
Well, then the docs might need an update. The good guys from Parcel should mention how and where it can be used or get rid of the part in the documentation completely. |
💬 RFC
Currently,
EntryResolver
expectspackage.json#source
to be the path of a file.I'm building an SSR plugin for Parcel v2 and I'd like my users to be able to define multiple entry points. For example:
where
pages/package.json#source
would be**/*.page.js
. But globs are not supported forpackage.json#source
.It seems that currently the only way to have multiple entries is to have a
package.json
for each entry. But it would be silly to ask my users to create a newpackage.json
each time they create a new page.This is somewhat related to the discussion at #3302.
The text was updated successfully, but these errors were encountered: