-
-
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
Bug report: Cannot build inside subdir root #7462
Comments
Making do with this hand-rolled script for now: let src = "";
for (const script of document.getElementsByTagName('script')) {
const scriptSrc = script.getAttribute('src');
const scriptType = script.getAttribute('type') ?? '';
if (scriptType.includes('json')) {
continue;
}
if (!scriptSrc) {
src += script.innerHTML;
} else {
src += await fetch(scriptSrc).then((res) => res.text()) + "\n\n";
}
} |
Hey, no need to be hostile about it. We're all trying to build the best software we can. I'm sorry that it didn't work for you. 😄
That said, it should be possible to use aliases to remap the {
"alias": {
"./_next/**": "./out/_next/$1"
}
} I do hear this feature request though, and I think we could probably add a |
A resolver plugin like https://github.com/mischnic/parcel-resolver-root can also change the meaning of |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. |
I just want to say that I've been hit by this in the first five minutes of evaluating Parcel. I'm trying to use Parcel in an 11ty-based project. Not a good start. |
This is still an issue for me. I tried several plugin resolvers (e.g. cwd relative to dir, namers etc) but often they introduce more problems than they fix. currently am not getting it to bundle properly at all. When I was running a successful production build it was outputting something like So the way this resolves directories ends up breaking the tree shaking, code splitting, dependency resolution and other core functionality of parcel. Every directory (until parcel 3 is out?) has to be built as a separate app - workers are almost always failing. |
I have a Next project.
next export
emits HTML files in./out/
. I would like to use Parcel to combine and minify the<script>
content in those HTML files but unfortunately, Parcel does not seem capable of doing this.From #1986 (comment):
In fact, not only does it fail with such simple resolution requests—which is remarkable—but it also causes Node to crash.
Just forwarding the report. I showed the required bug report form the same level of care and attention that was shown to the underlying logic in this issue. Feel free to close and do nothing, but it will not make the software any better.
The text was updated successfully, but these errors were encountered: