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

[BUG] subsetting-webpack-plugin fails with nested node_modules #723

Open
ColeStansbury opened this issue Jun 3, 2024 · 0 comments
Open

Comments

@ColeStansbury
Copy link

ColeStansbury commented Jun 3, 2024

The subsetting plugin is not designed to support nested fluent icon modules but webpack will still try to apply the plugin to them. You should either update the plugin docs to make sure webpack doesn't compile nested react-icons or add support for them.

My fix is as follows:

      modules: [
        // TODO - you should be able to have nested modules!
        path.resolve(__dirname, 'node_modules'),
      ],

(Still working on a fix that allows me to nest other packages' node_modules and just exclude react icons)

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