when building riot-router we get an error in Uglify as it doesn't recognise class Router (being es2015)
It seems that you are requiring the src instead of the dist in your main package file.
var riot = require('riot');
var route = require('riot-route');
var Router = require('./src/router.js');
var router = Router.create({route: route});
if (window) {
window.router = router;
}
module.exports = Router;
when building riot-router we get an error in Uglify as it doesn't recognise
class Router
(being es2015) It seems that you are requiring the src instead of the dist in your main package file.shouldn't line 3 be:
?