Comments (16)
@shellscape This still a relevant problem!
That extended tsconfigs are not supported should be documented or fixed.
Thanks for all your hard work!
from plugins.
I'm going to reopen the issue and try to solve the failing use cases described here.
from plugins.
I also had this same problem but I went further and had a peek into the source code of the plugin and found that it only imports the compilerOptions
object from the tsconfig.json file.
There isn't any easy workaround for this issue because TypeScript Compiler API only takes compilerOptions
as an argument for their transpilation functions as shown in their official docs.
If I were one of the core maintainers of this plugin I would consider changing the tsconfig
property name to compilerOptions
as it better describes what it really does. WDYT @Victorystick?
from plugins.
Hey folks (this is a canned reply, but we mean it!). Thanks to everyone who participated in this issue. We're getting ready to move this plugin to a new home at https://github.com/rollup/plugins, and we have to do some spring cleaning of the issues to make that happen. We're going to close this one, but it doesn't mean that it's not still valid. We've got some time yet before the move while we resolve pending Pull Requests, so if this issue is still relevant, please @ me and I'll make sure it gets transferred to the new repo. 🍺
from plugins.
This should be fixed by rollup/rollup-plugin-typescript#153, please let us know if it's not.
from plugins.
@shellscape I don't think it's fixed. I'm getting
@rollup/plugin-typescript: Couldn't process compiler options
when using extends: 'my-package
where 'my-package' is a module in my monorepo
from plugins.
@NotWoods any thoughts?
from plugins.
Uh I have a look at rollup/rollup-plugin-typescript#153, seems that it does not solve muti-level extends?
from plugins.
I can confirm that the issue is still present. @NotWoods @shellscape do you have any progress with this? Maybe there is a way to use TypeScript compiler API to actually process the config as tsc
does?
from plugins.
Could you provide a REPL link with an example of what's failing? We are using the compiler APIs Typescript provides already. The upcoming 4.0.0 version should fix some more issues too.
from plugins.
Well, as others mentioned, I have a very simple setup with two tsconfig.json
files, where one file is extending the other one. However, the compiler options are loaded only from the specified file. Options in the base config are getting totally ignored.
Are you using TypeScript compiler to load the config or are you loading it yourselves? I've tried to find a code that is responsible for loading tsconfig.json
in tsc
yesterday, but failed to do so due to the complexity and the size of the codebase. Could you please point me in the right direction if you are familiar with the codebase?
from plugins.
The examples in this issue all work now, so I would really appreciate the exact configuration you're using that doesn't work. I can't point to an exact location in the Typescript repo but we use the APIs provided by Typescript for parsing the configuration.
from plugins.
I would have been glad to assist with this issue further, but we have had to switch to the rollup-plugin-typescript2
due to the lack of some critical features in this plugin. Sorry about that… 😢
However, if this helps in resolving this bug: config inheritance started to work correctly when I switched plugins.
from plugins.
Fixed in version 4.0.0 of the typescript plugin
from plugins.
@NotWoods Still not working 🙂rollup-plugin-typescript2
works fine.
from plugins.
I'm getting a similar issue with version 5.0.2: Couldn't process compiler options
. I had to switch to rollup-plugin-typescript2
to solve the issue :/
from plugins.
Related Issues (20)
- @rollup/plugin-alias entries is not work when use customResolver HOT 1
- [@rollup/plugin-eslint] New flat config `eslint.config.js` is not recognized HOT 1
- [@rollup/plugin-esm-shim] Shim inserted incorrectly if source file has `import` in comment HOT 1
- [@rollup/plugin-node-resolve] confusion about what this plugin does HOT 2
- How to tell `--configPlugin` to use specific `tsconfig`? HOT 5
- [@rollup/plugin-node-resolve] resolving package.json exports/imports arrays HOT 1
- Source URLs in generated source map are wrong when `composite` is enabled in tsconfig.json
- requireReturnsDefault: "auto" results in an incorrect bundle for some libraries
- [@rollup/plugin-alias] Allow to configure alias based on entry point
- 在SCSS中如何替换Var变量
- Allow @rollup/plugin-virtual to be a function that takes a module ID
- [@rollup/plugin-tpescript] Rollup does not use `paths` in `rollup.config.ts`
- [@rollup/plugin-typescript] allowImportingTsExtensions warning
- [@rollup/plugin-tpescript] Rollup does not get `module` and `moduleResolution` settings from extended `tsconfig.json` HOT 1
- [@rollup/plugin-json] won't process files without json suffix HOT 4
- CommonJS plugin version bump to 26.0.0 causes build issue HOT 4
- Confusing explanation in @rollup/plugin-typescript's README
- [@rollup/plugin-swc] leads to unusable bundle in combination with [@rollup/plugin-commonjs] and [@rollup/plugin-node-resolve]
- I don't know if this is a mistake
- Wasm plugin to support latest ESM Integration & Source Phase Imports
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugins.