Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to avoid using JS import in production for non-recent browsers ("Legacy" support for ES2015) #2458

Closed
Tal500 opened this issue Sep 19, 2021 · 1 comment

Comments

@Tal500
Copy link
Contributor

Tal500 commented Sep 19, 2021

Describe the problem

Following my question in StackOverflow, I'm asking for support for ES2015 target, i.e. that the production output for the client will be able to be with no import keywords nor JavaScript modules, only bundled JS.

Describe the proposed solution

Vite compiler does support ES2015, so I think Svelte should be able to support it as well with no too much effort(again, only for production).

Probably Svelte output code should be modified to support no JavaScript modules in production, but I don't know for how much.

Alternatives considered

No response

Importance

i cannot use SvelteKit without it

Additional Information

No response

@dummdidumm
Copy link
Member

Duplicate of #12 . This isn't supported yet, but is on the roadmap post-1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants