You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked that there is no existing PR/issue about my proposal.
Summary
Let's allow to generate only es6 code
Motivation
The purescript team moved from common cjs to es6, now purescript can generate only es6. And then they use tools like esbuild or vite to transform es6 to whatever
Why? Because require is not pure, but import export is, thus es6 allows to remove dead code
The text was updated successfully, but these errors were encountered:
Summary
Let's allow to generate only es6 code
Motivation
The purescript team moved from common
cjs
toes6
, now purescript can generate onlyes6
. And then they use tools likeesbuild
orvite
to transformes6
to whateverWhy? Because
require
is not pure, butimport export
is, thuses6
allows to remove dead codeThe text was updated successfully, but these errors were encountered: