Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loader does not support exposed dependencies from node_modules #19

Open
XavierLeTohic opened this issue Apr 6, 2023 · 1 comment
Open

Comments

@XavierLeTohic
Copy link

We have a module that only exposes our dependencies (react, react-dom, dayjs etc.), it seems that the loader ignores them and does not generates the dts files.

Here is an example of the exposes we have:

exposes: {
    './react': 'react',
    './react-dom': 'react-dom',
}

And our tsconfig:

{
  "compilerOptions": {
    "allowSyntheticDefaultImports": true,
    "esModuleInterop": true,
    "resolveJsonModule": true,
    "module": "esnext",
    "moduleResolution": "node",
    "strict": true,
    "target": "esnext",
    "outDir": "./dist",
    "rootDir": ".",
    "baseUrl": ".",
    "declaration": true,
    "declarationMap": true,
    "sourceMap": true,
    "skipLibCheck": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "noEmitHelpers": true,
    "importHelpers": true,
    "typeRoots": ["./node_modules/@types"],
    "types": ["../../types", "./node_modules/@types", "node"]
  },
  "ts-node": {
    "compilerOptions": {
      "target": "ES6",
      "module": "CommonJS"
    }
  }
}

Do we miss something?

@weisk
Copy link

weisk commented Apr 12, 2023

+1, facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants