Skip to content

Build flag to select ECMAScript version for output #14901

@pjebs

Description

@pjebs

Describe the problem

I want to use Svelte on a browser that only has ECMAScript 5.1 support.
The aim is to use the current Vite build system with minimal playing around.

I know that in the past, rollup was used directly which meant you could do a whole lot of playing around with configs and use a ECMAScript 5.1 conversion plugin.

Describe the proposed solution

Is there a flag I can use to change the output?

Importance

It would be great since I'm not a JS developer and playing with configs intimidates me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions