docs: note url string must be static#7508
docs: note url string must be static#7508patak-cat merged 1 commit intovitejs:mainfrom bluwy:docs-url-static
Conversation
Maybe the best is to send a PR for this so we can discuss it there. Would this only be replaced depending on the target for example? |
|
Was thinking that esbuild could use the |
|
Now, wasm-pack which will build WASM with JavaScript glue layer code contains One of the solutions is set Even if set |
|
@zhangyuang would you open a new issue with a minimal reproduction? Thanks! |
|
ok |
Description
Closes #5558
Additional context
Something I've been thinking about is if we can replace
import.meta.urlasself.location.hrefeverywhere to avoid issues like this, similar to #7464. This could be done in esbuild if the target is a browser, and it might help #5270 too.What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123).