Update dependency esbuild to v0.8.6 #26
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.8.5
->0.8.6
Release Notes
evanw/esbuild
v0.8.6
Compare Source
Changes to TypeScript's
import name =
syntaxThe parsing of TypeScript's
import name =
syntax should now match the official TypeScript parser. Previously esbuild incorrectly allowed any kind of expression after the equals sign. Now you can only use either a sequence of identifiers separated by periods or a call to therequire
function with a string literal.Do not report warnings about
require()
insidetry
(#512)This release no longer reports warnings about un-bundled calls to
require()
if they are within atry
block statement. Presumably the try/catch statement is there to handle the potential run-time error from the unbundledrequire()
call failing, so the potential failure is expected and not worth warning about.Add the
--keep-names
option (#510)In JavaScript the
name
property on functions and classes defaults to a nearby identifier in the source code. These syntax forms all set thename
property of the function to'fn'
:However, minification renames symbols to reduce code size. That changes value of the
name
property for many of these cases. This is usually fine because thename
property is normally only used for debugging. However, some frameworks rely on thename
property for registration and binding purposes. If this is the case, you can now enable--keep-names
to preserve the originalname
values even in minified code.Omit unused TypeScript import assignment aliases (#474)
In TypeScript,
import x = y
is an alias statement that works for both values and types and can reach across files. Because esbuild doesn't replicate TypeScript's type system and because esbuild converts each file from TypeScript to JavaScript independently, it's not clear to esbuild if the alias refers to a value and should be kept as JavaScript or if the alias refers to a type and should be removed.Previously all import aliases were kept in the generated JavaScript. This could lead to problems if the alias actually referred to a type. Now import aliases are only kept if they are used as values. This way import aliases that are only used as types will be automatically removed. This doesn't exactly match what the TypeScript compiler does in complex scenarios but it should work for many real-world cases.
Validate that on-resolve plugins return absolute paths in the
file
namespaceThe default path namespace for on-resolve plugins is the
file
namespace. Paths in this namespace are expected to be absolute paths. This is now enforced. If the returned path is not supposed to be a file system path, you should set a namespace other thanfile
so esbuild doesn't treat it as a file system path.External paths returned by a plugin do not default to the
file
namespaceThe
file
namespace is normally implied if it's not specified. However, that probably does not match the intent of the plugin for paths that have been marked as external. Such paths will now have an empty namespace instead of the namespacefile
. You now have to explicitly specify thefile
namespace in your plugin if you want it for external paths.Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.