hyrious

Results 217 comments of hyrious

As a workaround (or work as expected?), you can read [`args.importer`](https://esbuild.github.io/plugins/#on-resolve-arguments:~:text=with%20http%3A//.-,importer,-This%20is%20the) and parse / match import statements by yourself to find imported names. I didn't see this design before in...

@lidenggao Maybe you could provide more details on what's your input code and what's your expected output code. I don't see any necessary for the last example where I could...

Base on your log above, it seems the problem is that esbuild did not try to resolve symlinks created by pnpm on Windows. The correct log should be like: ```diff...

@aspire-shatheesh The `file` loader returns the relative path to the target file. You can find reasonable examples [in the documentation](https://esbuild.github.io/content-types/#file).

In VS Code you can publish [platform specific extensions](https://code.visualstudio.com/api/working-with-extensions/publishing-extension#platformspecific-extensions). Simply adds `--target linux-x64` in the `vsce` commands and related files in node_modules will be scanned and included in the extension...

> The current node_modules directory is around 200+ MB. Before answering your questions, it is totally fine to have a VS Code extension that big. For example `ms-vscode.vscode-speech` is about...

You can access to the build result with a custom plugin's on-end callback: ```js plugins: [{ name: 'watch', setup({ onEnd }) { onEnd((ret) => { console.log('built', ret) }) } }]...

It is expected. You may want to check out the `serve` and `watch` methods details but here's the quick explanation: - The `serve` mode runs build only when each time...

> I assume currently the changes are not getting picked up because JS doesn't send back the output to the Go server running locally thus it never knows about if...

Just want to add the [playground link](https://esbuild.github.io/try/#YgAwLjI1LjEALS1idW5kbGUgLS1mb3JtYXQ9ZXNtIC0tc3BsaXR0aW5nIC0tb3V0ZGlyPW91dABlAGVudHJ5LmpzAGltcG9ydCB7IHVzZVN0YXRlIH0gZnJvbSAiLi9zaGFyZWQtcmVhY3QtcGFja2FnZS5qcyI7AGUAc2hhcmVkLXJlYWN0LXBhY2thZ2UuanMAZXhwb3J0ICogZnJvbSAiaHR0cHM6Ly9lc20uc2gvcmVhY3RAMTguMy4xL2VzMjAyMi9yZWFjdC5kZXZlbG9wbWVudC5tanMiOwpleHBvcnQgeyBkZWZhdWx0IH0gZnJvbSAiaHR0cHM6Ly9lc20uc2gvcmVhY3RAMTguMy4xL2VzMjAyMi9yZWFjdC5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