esbuild 0.17.18
-
Fix non-default JSON import error with
export {} from(#3070)This release fixes a bug where esbuild incorrectly identified statements of the form
export { default as x } from "y" assert { type: "json" }as a non-default import. The bug did not affect code of the formimport { default as x } from ...(only code that used theexportkeyword). -
Fix a crash with an invalid subpath import (#3067)
Previously esbuild could crash when attempting to generate a friendly error message for an invalid subpath import (i.e. an import starting with
#). This happened because esbuild originally only supported theexportsfield and the code for that error message was not updated when esbuild later added support for theimportsfield. This crash has been fixed.