Skip to content

[dev-server-esbuild] Error after upgrading to esbuild 0.28 #3131

Description

@web-padawan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions