Skip to content

2025 Updates for Native ESM #27

@coolaj86

Description

@coolaj86

It's time to switch to ESM.

{
  "compilerOptions": {
    "target": "es2022", // not esnext because that may include non-javascript
    "module": "nodenext", // evergreen ESM resolution (i.e. importmaps)
    "moduleResolution": "nodenext", // nodenext requires `module` to be nodenext
    "paths": {
      "example/*": ["./js/*"],
      "passkey": ["./lib/passkey.js"],
      "localstore": ["./lib/localstore.js"]
    },
    "typeRoots": ["./typings","./node_modules/@types"],
    "allowJs": true,
    "checkJs": true,
    "noEmit": true,
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "strict": true,
    "noImplicitAny": true,
    "alwaysStrict": true,
    "skipLibCheck": true
  },
  "include": [
    "*.js",
    "js/**/*.js",
    "bin/**/*.js",
    "lib/**/*.js",
    "src/**/*.js"
  ],
  "exclude": ["node_modules"]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions