Skip to content
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

Parcel does not respect --public-url for inline es modules #9960

Open
lovasoa opened this issue Sep 21, 2024 · 2 comments
Open

Parcel does not respect --public-url for inline es modules #9960

lovasoa opened this issue Sep 21, 2024 · 2 comments

Comments

@lovasoa
Copy link

lovasoa commented Sep 21, 2024

When using --public-url, the following works:

<script type="module" src="./x.ts"></script>

but the following will ignore the public URL and load all dependencies from /:

<script type="module">
  import { f } from "./x.ts";
  f();
</script>
@devongovett
Copy link
Member

What is the problem here? Please provide a reproduction.

@lovasoa
Copy link
Author

lovasoa commented Sep 30, 2024

Hi! Did you try the example I gave above and failed to replicate? x.ts has to be large enough not to be fully inlined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants