-
Notifications
You must be signed in to change notification settings - Fork 362
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
Typescript Generated an empty chunk #756
Comments
How was this resolved? I'm getting same warning. Repro: // @file tsconfig.json
{
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"declarationDir": "./dist/types",
"emitDeclarationOnly": true,
}
} Workaround: if type declarations are created only via microbundle (rollup ts plugin), there are no warnings. // @file tsconfig.json
{
"compilerOptions": {
- "declaration": true,
- "declarationMap": true,
- "declarationDir": "./dist/types",
- "emitDeclarationOnly": true,
+ "noEmit": true
}
} |
Update: so if Initially I thought that babel is used for transpilation no matter what ( which from my experience, would be definitely preferred as TS has various shortcomings when doing actual transpilation) |
For reference, the issue here was upstream in rpt2 ezolenko/rollup-plugin-typescript2#268, where rpt2 previously did not have any special handling of I recently added support for |
I'm migrating one of my projects to typescript and suddenly my build yields empty chunks.
rollup
emits this warning here:https://github.com/rollup/rollup/blob/95400517f8bba1146d23654a881616f280db0346/src/Chunk.ts#L642-L649
This is my PR: https://github.com/AndyOGo/stylelint-declaration-strict-value/pull/119/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
The text was updated successfully, but these errors were encountered: