When I use riot-tag-loader to webpack my tags, neither riot
or route
object are defined inside the script area or inline scripts.
I have a router tag, and that works with a href
hashes. But this way I can't change location programmaticaly.
Without webpack works like a charm.
Works in the official webpack demo, even after stepping back from es6. My webpack config is much more complex, the hack might be there.
I have created a minimal test case here: https://github.com/zorgoz/psilog.bughunt
Please take a look and advise. Thank you!
Set your webpack configuration to automatically load
riot-route
module wheneverroute
identifier is encountered by using theProvidePlugin
to map the identifier to the module. e.g.