@lirx/router is a performant router for
@lirx/dom
It is now in BETA. Please use with caution and provide feedback.
yarn add @lirx/router
# or
npm install @lirx/router --save
This library supports:
- common-js (require): transpiled as es5, with .cjs extension, useful for old nodejs versions
- module (esm import): transpiled as esnext, with .mjs extension (requires node resolution for external packages)
In a node environment the library works immediately (no extra tooling required), however, in a browser environment, you'll probably need to resolve external imports thought a bundler like snowpack, rollup, webpack, etc... or directly using skypack: https://cdn.skypack.dev/@lirx/router