Skip to content

Instantly share code, notes, and snippets.

@breakerh
Created August 11, 2023 15:16
Show Gist options
  • Save breakerh/a1d4840e8545d3a67fdb3732174f0bb0 to your computer and use it in GitHub Desktop.
Save breakerh/a1d4840e8545d3a67fdb3732174f0bb0 to your computer and use it in GitHub Desktop.
Want to us @react-icons/all-files without changing the import? Here you go!
/** @type {import('next').NextConfig} */
const nextConfig = {
modularizeImports: {
"react-icons/?(((\\w*)?/?)*)": {
transform: "@react-icons/all-files/{{ matches.[1] }}/{{ member }}",
skipDefaultConversion: true
}
}
}
module.exports = nextConfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment