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

tsconfig has no effect on postcss.config.ts #10387

Closed
7 tasks done
kingyue737 opened this issue Oct 9, 2022 · 2 comments
Closed
7 tasks done

tsconfig has no effect on postcss.config.ts #10387

kingyue737 opened this issue Oct 9, 2022 · 2 comments
Labels
bug: upstream Bug in a dependency of Vite

Comments

@kingyue737
Copy link
Contributor

Describe the bug

In tsconfig.json, esModuleInterop flag is set. But postcss.config.ts cannot import module declared with export =

Reproduction

https://stackblitz.com/edit/vitejs-vite-vwdwgx

Steps to reproduce

Open the reproduction link

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (6) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.17.0 - /usr/local/bin/npm
  npmPackages:
    @vitejs/plugin-vue2: ^1.1.2 => 1.1.2 
    vite: ^3.1.6 => 3.1.6

Used Package Manager

pnpm

Logs

No response

Validations

@sapphi-red
Copy link
Member

Vite just uses postcss-load-config and it happens with it too.
https://stackblitz.com/edit/vitejs-vite-5p4wnp?file=p.mjs

Maybe it's a limitation/bug of postcss-load-config or ts-node.

@sapphi-red sapphi-red added bug: upstream Bug in a dependency of Vite and removed pending triage labels Oct 9, 2022
@haoqunjiang
Copy link
Member

TypeStrong/ts-node#1057 ts-node doesn't support solution-style tsconfig.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug: upstream Bug in a dependency of Vite
Projects
None yet
Development

No branches or pull requests

3 participants