102 karma · joined Nov 28, 2015 (11y ago) · 62 submissions
comment 5y ago · link · parent
WMR's unique take is basically to be instant in every possible way, and to provide an ideal substrate for us to build and show Preact features that rely on bundler semantics. We have maintained a Webpack-based build tool for Preact for a while, and wanted to explore what a total re-think would look like. We also spent a while building out new pieces of the bundler that fit this model better than repurposing existing generalized tooling. This is one of the reasons WMR builds as fast as it does despite doing so much optimization work - it's designed around a singular goal and we allowed for very limited compromise.
I think that after a few years we will see a corresponding consolidation of the tools you mentioned, as the dust settles on this newer dev/prod split paradigm and it's effect on the bundler plugin ecosystem.
comment 5y ago · link · parent
export async function prerender(data) { return { html: "<h1>hi</h1>", links: ["/other-page"] } }
Hot reloading is a similar story, it's the same API as Vite and Snowpack:
if (import.meta.hot) import.meta.hot.accept(({ module }) => { do stuff }));
comment 5y ago · link · parent
FWIW the surface area for security issues here is far smaller than npx or similar tools, because WMR only writes JS/CSS/TS files to disk, and doesn't execute package scripts (where most vulnerabilities reside).
comment 5y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
25.
Microbundle: zero-configuration bundler for tiny modules(github.com ↗)
4 points · by developit · 8y ago · discuss
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
FWIW there are hundreds of companies (some very very large) using Preact in production. If there were showstopper bugs, they'd be fixed immediately.