Skip to content

Doesn't work for components with code-splitting #73

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

Open
zdila opened this issue Mar 30, 2020 · 0 comments
Open

Doesn't work for components with code-splitting #73

zdila opened this issue Mar 30, 2020 · 0 comments
Labels

Comments

@zdila
Copy link

zdila commented Mar 30, 2020

Hi,

Just a quick note - if your component generates chunks (code splitting) then importing it in other project imports undefined.

Disabling code splitting in the component helps - in config/webpack-config.js:

 plugins: [
      new webpack.optimize.LimitChunkCountPlugin({
        maxChunks: 1,
      }),
      ...
@zdila zdila added the bug label Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant