JSPM

  • Created
  • Published
  • Downloads 21407
  • Score
    100M100P100Q136570F
  • License MIT

Node.js loader for import specifiers of file paths with no extensions and, optionally, of directory paths

Package Exports

  • extensionless
  • extensionless/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (extensionless) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Node.js loader for import specifiers of file paths with no extensions and, optionally, of directory paths

 

Install:

npm install extensionless

 

Start node with the following flag added:

--experimental-loader=extensionless

 

To configure this package, you can add the field extensionless to package.json:

"extensionless": {
    "lookFor": ["js", "json"],   // default: ["mjs", "js", "json"]
    "resolveDirs": true          // default: false
}