Evan Wallace
Evan Wallace
Are you saying if you do `import Lib from 'lib'` and then `lib.foo()` that esbuild would remove `bar` and `baz`? One problem is that `lib.foo()` hands `foo` the entire value...
I don't think that would make this easier to implement as that's pretty much a completely separate feature from what is being requested here. The `export` statement may look like...
If this is to be implemented, this should probably use the standard `ignoreList` field instead now that source maps are an actual standard: https://tc39.es/ecma426/.
In theory this should already be working as the `${configDir}` feature was implemented last year (see #3782). Here's a live example of it working: [link](https://esbuild.github.io/try/#YgAwLjI1LjYALS1idW5kbGUAZQBzcmMvZW50cnkudHMAaW1wb3J0ICJsaWJyYXJ5L2Zvby9iYXIiAABzcmMvdHNjb25maWcuanNvbgB7CiAgImV4dGVuZHMiOiAiQHNjb3BlL2NvbmZpZ3MvdHNjb25maWciCn0AAGxpYi9mb28vYmFyLnRzAGNvbnNvbGUubG9nKCd3b3JrcycpAABub2RlX21vZHVsZXMvQHNjb3BlL2NvbmZpZ3MvdHNjb25maWcuanNvbgB7CiAgImNvbXBpbGVyT3B0aW9ucyI6IHsKICAgICJwYXRocyI6IHsKICAgICAgImxpYnJhcnkvKiI6IFsiJHtjb25maWdEaXJ9Li4vbGliLyoiXQogICAgfQogIH0KfQ). If it's not working for...
Closing due to lack of a reproduction.
This repo is pretty outdated at this point. I should archive it.
I took a brief look at this. One reason that this isn't trivial is that esbuild now supports transforming unsupported regular expression literals into `new RegExp()` calls to avoid syntax...
> there definitely isn't a side-effect By using `--target=es6`, you are telling esbuild that this regular expression may be run in an ES6 environment that doesn't support the `\p` syntax....
The API for canceling a build is here: https://esbuild.github.io/api/#cancel
Sorry, I'm confused. Your first example with `err != nil` already compiles and works correctly, and your second "workaround" example with `err.(*api.ContextError) != nil` doesn't compile or work. This is...