uri-template-router icon indicating copy to clipboard operation
uri-template-router copied to clipboard

[Improvement] Module type

Open Lcfvs opened this issue 5 years ago • 2 comments

Hi again,

Since a router can be used both in front/back, it can be useful to use it as a ES6 module, preferably without any package bundling requirement.

Any chance to make it as an ES6 module?

Lcfvs avatar Nov 27 '19 05:11 Lcfvs

@Lcfvs Is that well supported by Web browsers and Node.js these days? I'm really not sure what the advantage is over e.g. Browserify

awwright avatar Nov 27 '19 18:11 awwright

@awwright [email protected] already supports the ES modules For the browsers: https://caniuse.com/#search=module

Browserify, Webpack, Parcel & others are fine, but the it's a few boring to be forced to use them where the modern features provide a way to load our resources without that extra process.

Lcfvs avatar Nov 28 '19 11:11 Lcfvs