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

fix: avoid using commonjs for runtime (vite support) #1080

Merged
merged 2 commits into from
Mar 1, 2021
Merged

Conversation

pi0
Copy link

@pi0 pi0 commented Mar 1, 2021

While tools like webpack allow using mixed esm/cjs syntax, it will break vite. And generally esm syntax allows having more predictable code. Dependencies like is-https will be treeshaked since have no side-effects and for client bundle since it is unreachable.

src/templates/options.js Outdated Show resolved Hide resolved
@pi0 pi0 marked this pull request as ready for review March 1, 2021 20:59
@rchl rchl merged commit a9003b4 into master Mar 1, 2021
@rchl rchl deleted the fix/commonjs branch March 1, 2021 21:00
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

Successfully merging this pull request may close these issues.

2 participants