JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 81519
  • Score
    100M100P100Q160973F
  • License MIT

A base TSConfig for working with Docusaurus v2.

Package Exports

    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 (@tsconfig/docusaurus) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    A base TSConfig for working with Docusaurus v2.

    Add the package to your "devDependencies":

    npm install --save-dev @tsconfig/docusaurus
    yarn add --dev @tsconfig/docusaurus

    Add to your tsconfig.json:

    "extends": "@tsconfig/docusaurus/tsconfig.json"

    NOTE: You may need to add "baseUrl": "." to your tsconfig.json to support proper file resolution.


    The tsconfig.json:

    {
      "$schema": "https://www.schemastore.org/tsconfig",
      "docs": "https://v2.docusaurus.io/docs/typescript-support",
      "_version": "2.0.0",
      
      "compilerOptions": {
        "allowJs": true,
        "esModuleInterop": true,
        "jsx": "react",
        "lib": ["dom"],
        "module": "esnext",
        "moduleResolution": "bundler",
        "noEmit": true,
        "types": ["node", "@docusaurus/module-type-aliases", "@docusaurus/theme-classic"],
        "baseUrl": ".",
        "paths": {
          "@site/*": ["./*"]
        },
        "skipLibCheck": true
      }
    }
    

    You can find the code here.