We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
tsc
Repo: https://github.com/eavidy/test_case/tree/rollup-plugin-ts git clone -b rollup-plugin-ts git@github.com:eavidy/test_case.git
git clone -b rollup-plugin-ts git@github.com:eavidy/test_case.git
package.json
{ "name": "tess", "version": "1.0.0", "type": "module", "devDependencies": { "rollup": "^4.17.2", "rollup-plugin-ts": "^3.4.5", "tslib": "^2.6.2", "typescript": "^5.4.5" } }
tsconfig.json
{ "compilerOptions": { "target": "ESNext", "module": "ESNext", "moduleResolution": "node", "lib": ["ESNext"], "strict": true, "declaration": true }, "exclude": ["node_modules", "dist"] }
rollup.config.js
//@ts-check import { defineConfig } from "rollup"; import tsPlugin from "rollup-plugin-ts"; export default defineConfig({ input: ["./src/mod.ts"], output: { dir: "dist", }, plugins: [tsPlugin({})], });
src/mod.ts
export * from "./sub.js";
src/sub.ts
export function array() {} array.function = 1;
run pnpm rollup -c
pnpm rollup -c
The output declaration file is correct
A declaration file with syntax errors was output (Contains incorrect characters: "generated@68")
declare function array(): void; declare namespace array { var generated@68: number; export { generated@68 as function }; } export { array };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
tsc
(if applicable): yesReproduction
Repo: https://github.com/eavidy/test_case/tree/rollup-plugin-ts
git clone -b rollup-plugin-ts git@github.com:eavidy/test_case.git
package.json
tsconfig.json
rollup.config.js
src/mod.ts
src/sub.ts
run
pnpm rollup -c
Expected Behavior
The output declaration file is correct
Actual Behavior
A declaration file with syntax errors was output (Contains incorrect characters: "generated@68")
The text was updated successfully, but these errors were encountered: