Problem
By default, Safari 11.1 is hardcoded here as the lowest supported versopn:
|
export const TARGET_LOWEST_ESM_SUPPORT = ['chrome64', 'edge79', 'firefox67', 'safari11.1']; |
esbuild 0.28 marks destructuring as broken in Safari < 14.1 and cannot compile it down, so it fails with an error for any code that uses destructuring when the target includes safari11.1:
Transforming destructuring to the configured target environment ("chrome64", "edge79", "firefox67", "safari11.1") is not supported yet
Proposed solution
Update minimal Safari version to 14.1.
Note
In out project we had to set target to esnext as a workaround: vaadin/web-components#12101
Problem
By default, Safari 11.1 is hardcoded here as the lowest supported versopn:
web/packages/dev-server-esbuild/src/browser-targets.ts
Line 8 in ef238a8
esbuild 0.28 marks destructuring as broken in Safari < 14.1 and cannot compile it down, so it fails with an error for any code that uses destructuring when the target includes safari11.1:
Proposed solution
Update minimal Safari version to 14.1.
Note
In out project we had to set target to
esnextas a workaround: vaadin/web-components#12101