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
In the future, rspack will support more pretty es-module library output, whose output is similar to Rollup or esbuild, no extra runtime needed (well, almost), you can see demo below to see the differences
Currently output.module is a boolean type, which enables es module output, we can make this config to be an enum, like 'lib' | 'app', the true means app
experiments.outputModule = 'lib'
Like output.module, currently this is a boolean type and present as a switch to enable output.module, we can make this an enum as well
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the future, rspack will support more pretty es-module library output, whose output is similar to Rollup or esbuild, no extra runtime needed (well, almost), you can see demo below to see the differences
Before
Future will be
There are some options I've found
output.module = 'lib'
Currently
output.module
is a boolean type, which enables es module output, we can make this config to be anenum
, like'lib' | 'app'
, thetrue
meansapp
experiments.outputModule = 'lib'
Like
output.module
, currently this is a boolean type and present as a switch to enableoutput.module
, we can make this anenum
as wellOther
Leave your comments below
1 vote ·
Beta Was this translation helpful? Give feedback.
All reactions