You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now run the build (rollup with rollup-plugin-ts enabled). The output will be the only index.js and types-[hash].d.ts.
Expected Behavior
Files with only declarations inside should be generated as empty js files (or at least have an option to do so) and d.ts files should be generated with the same file name + d.ts
Actual Behavior
Files with only declarations inside get removed and d.ts file is generated with a random hash (i.e., types-1fb4813.d.ts).
Notes
This is actually critical for me when bundling project with preserveModules set to true, because for example in my case, things generated like this: some/path/to/declarations.ts does not generate any js file (which is fine, but at least I need .d.ts to be generated in that place with the original name + .d.ts) and in the root of build folder, it generates declarations-951a8ca8.d.ts.
The text was updated successfully, but these errors were encountered:
tsc
(if applicable): Yes.Reproduction
Create two files, one for types, another one to use it, for example:
Now run the build (rollup with rollup-plugin-ts enabled). The output will be the only
index.js
andtypes-[hash].d.ts
.Expected Behavior
Files with only declarations inside should be generated as empty js files (or at least have an option to do so) and d.ts files should be generated with the same file name + d.ts
Actual Behavior
Files with only declarations inside get removed and d.ts file is generated with a random hash (i.e., types-1fb4813.d.ts).
Notes
This is actually critical for me when bundling project with preserveModules set to true, because for example in my case, things generated like this:
some/path/to/declarations.ts
does not generate any js file (which is fine, but at least I need .d.ts to be generated in that place with the original name + .d.ts) and in the root of build folder, it generatesdeclarations-951a8ca8.d.ts
.The text was updated successfully, but these errors were encountered: