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
pure
When I use the pure option, it doesn't seem to have any effect:
import { defineConfig } from 'tsup'; export default defineConfig({ entry: ['src/**/*.@(ts|tsx)'], format: ['cjs', 'esm'], target: 'esnext', treeshake: true, pure: 'useContext', dts: false, splitting: false, sourcemap: true, clean: true, minify: true });
when i build the project with treeshake active i get these warnings
"useContext" is imported from external module "react" but never used in "dist/Header/Header.js". Generated an empty chunk: "types".
Same effect if I use CLI
npx tsup --pure useContext
Am I doing something wrong?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I use the pure option, it doesn't seem to have any effect:
when i build the project with treeshake active i get these warnings
"useContext" is imported from external module "react" but never used in "dist/Header/Header.js". Generated an empty chunk: "types".
Same effect if I use CLI
npx tsup --pure useContext
Am I doing something wrong?
Upvote & Fund
The text was updated successfully, but these errors were encountered: