First approach to building a vanilla JS UI-Router for client-side routing in modular JS applications.
To create an exportable 3rd party library:
Clone from https://github.com/ui-router/core
.
In the root directory run npm run compile
.
Add the line export * from './router';
to lib-esm/vanilla.js
.
Point the Rollup bundler to the vanilla js entry point in line 34 of rollup.config.js
change lib-esm/index.js
to lib-esm/vanilla.js
.
Run npm run bundle
to create bundled vanilla js files in the _bundles
directory.