nodecg / express-transform-bare-module-specifiers

Express middleware to transform bare module specifiers on-the-fly.
4 stars 2 forks source link

Support relative path imports that leave off file extensions #4

Open ZMYaro opened 3 years ago

ZMYaro commented 3 years ago

Some packages, such as some of Google's Material Web Component (mwc-) packages, use relative paths that leave off the .js file extension. This middleware transforms bare module imports that leave off the full file name of the requested script, but that is not usable if imports within those scripts are not transformed.