-
Notifications
You must be signed in to change notification settings - Fork 101
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
Warning in webpack - critical dependency #84
Comments
@tomasztomys Thanks for the report. Just wondering if you could provide a few more details on your environment configuration, such as a partial |
config.js
and dev.config.js (merged with config.js)
|
Cool thanks - it's pretty late here (in Australia), but I'll try to take a look first thing tomorrow and put a small repro case together to see if I can work out what is going on. |
hello, |
this also happens when using the create-react-app https://github.com/facebook/create-react-app |
It appears that because "require" is passed in as a variable via your factory constructor webpack has no way of knowing how it may be used therefore cannot optimize dependencies. Does "require" even need to be passed into factory constructor as it does not appear to be used? |
@cs-NET That explains everything. And no, not at all. The only reason it's done that was is that I opted to go with a umd transpilation target from typescript. This is mainly because a few people in the I haven't yet actually published this anywhere, so I think it's safe to switch typescript back to the commonjs transpilation. Later on I can create an override as a separate build and put generate the UMD build as part of a separate release pipeline (see #83) and everybody wins :) I'll just go through that repro process now to validate this fixes it. Once I'm sure I'll publish a |
Thanks for the information and assistance in getting this sorted. @severi nice tip using
|
only in v4, in v3.0.1 it's okey
The text was updated successfully, but these errors were encountered: