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
I got some error messages while building with rollup:
rollup.config.js
import { defineConfig } from 'rollup' import iconPlugin from 'unplugin-icons/rollup' import typescriptPlugin from '@rollup/plugin-typescript' const config = defineConfig({ input: ['src/index.tsx'], output: { format: 'es', dir: 'dist', preserveModules: true, }, plugins: [ typescriptPlugin(), iconPlugin({ compiler: 'jsx', jsx: 'react', }), ], external: [ 'react/jsx-runtime', 'react', ], }) export default config
tsconfig.json
{ "compilerOptions": { "target": "ESNext", "useDefineForClassFields": true, "lib": ["DOM", "DOM.Iterable", "ESNext"], "allowJs": false, "skipLibCheck": true, "esModuleInterop": false, "allowSyntheticDefaultImports": true, "strict": true, "forceConsistentCasingInFileNames": true, "module": "ESNext", "moduleResolution": "Node", "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, "jsx": "react-jsx", "types": ["unplugin-icons/types/react"] }, "include": ["src"] }
src/index.tsx
import UserIcon from '~icons/carbon/user' export const Icon = () => <UserIcon />
https://github.com/KarasuShin/unplugin-icons-rollup-reproduction
System: OS: macOS 13.3.1 CPU: (10) arm64 Apple M1 Pro Memory: 107.00 MB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.14.0 - ~/Library/Caches/fnm_multishells/8359_1683852025838/bin/node Yarn: 1.22.15 - /usr/local/bin/yarn npm: 9.3.1 - ~/Library/Caches/fnm_multishells/8359_1683852025838/bin/npm Watchman: 2023.04.24.00 - /opt/homebrew/bin/watchman Browsers: Chrome: 113.0.5672.92 Safari: 16.4
pnpm
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
I got some error messages while building with rollup:
rollup.config.js
tsconfig.json
src/index.tsx
Reproduction
https://github.com/KarasuShin/unplugin-icons-rollup-reproduction
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: