reejs icon indicating copy to clipboard operation
reejs copied to clipboard

Feature request: implement & add preloading support for client side

Open renhiyama opened this issue 1 year ago • 2 comments

Implement and add preloading support for all files (components, utils & other files) that are imported on the current page, recursively. Packit uses es-module-lexer that comes bundled with reejs at @reejs/imports/lexer.js, please make use of it to not include more dependencies by default.

renhiyama avatar Oct 04 '23 12:10 renhiyama

Plus try not to continue anymore when it comes to loading third party libraries. You might mess up with import maps, and esm.sh already has added support for preloading nested imports on their side.

renhiyama avatar Oct 04 '23 12:10 renhiyama

Might be able to make use of https://github.com/dburles/modulepreload-link-relations. It uses es-module-lexer as its only dependency. I'm working on a branch at the moment that adds import map support.

dburles avatar Jul 06 '24 06:07 dburles