reejs
reejs copied to clipboard
Feature request: implement & add preloading support for client side
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.
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.
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.