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
Just trying out embroider for some of our apps. Bit curious to know whether embroider does some kind of dependency pre-bundling(like vitejs) to speed up the server startup time.
The text was updated successfully, but these errors were encountered:
siva-sundar
changed the title
[Discussion] Does embroider do dependency pre-bundling like vite does ?
[Discussion] Does embroider do dependency pre-bundling like ViteJS does ?
Apr 27, 2021
That's not a feature that would belong in Embroider itself, because Embroider is not a Javascript bundler. It delegates to a Javascript bundler, after compiling away Ember-specific conventions and backward-compatibility problems. Embroider can use Vite, though that is not yet as polished as using it with webpack.
Yes, the goal is to get all addons to ship in the new v2 format, which means they will be pre-built by their authors down to the standard format and won't need any preprocessing by embroider at all.
I would add that the dependency pre-building step in Vite (and Snowpack) is a cost, not a benefit, of that build architecture. It's mostly needed because so many dependencies still ship as CommonJS and not ES modules. It would be better not to need it and instead get library authors to directly ship a minimal set of ES modules.
Just trying out embroider for some of our apps. Bit curious to know whether embroider does some kind of dependency pre-bundling(like vitejs) to speed up the server startup time.
The text was updated successfully, but these errors were encountered: