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

Why doesn't @rollup/plugin-typescript inline imported module contents when bundling multiple TypeScript files into a single JavaScript file? #1825

Open
Autumn-one opened this issue Dec 6, 2024 · 0 comments

Comments

@Autumn-one
Copy link

  • Rollup Plugin Name: @rollup/plugin-typescript
  • Rollup Plugin Version:12.1.1

Feature Use Case

I'm confused about the default behavior of @rollup/plugin-typescript. In my simple TypeScript project, I have just two files:

add.ts: exports an 'add' function
index.ts: imports and exports the 'add' function
When I bundle this project into index.js, I expected the content of add.ts to be included in the final bundle. However, I found that the bundle still contains the import statement instead of inlining the actual code from add.ts. This is not what I expected.

Feature Proposal

What I want is to bundle multiple TypeScript files into a single JavaScript file with all their contents combined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant