-
Notifications
You must be signed in to change notification settings - Fork 518
Webpack Includes Tests in Production Build #501
Comments
Does it really include them? I just tried If you have repro steps that cause the tests to be included in production build, can you please post them? |
I was referring to the actual tests themselves, since the webpack configuration does not seem to be excluding specs at all ? |
@nicwillemse Do you mean that the webpack configs need the |
@nicwillemse Unless I'm missing something, the spec files don't need to be excluded. They won't be bundled with the application code, because the application code doesn't reference the specs. |
@MarkPieszak thats exactly what im saying. @SteveSandersonMS do you agree with this comment ? |
No I don't - please see my previous comment for details :) |
@SteveSandersonMS - im not sure your previous comment applies, the specs will be bundled due to the webpack configuration. |
Can you confirm that you're actually seeing spec code inside the built bundles in I searched mine and didn't find any spec code in those bundles, nor would I expect to, since the specs are not referenced from the application code. |
In the current setup it looks as if the webpack configuration is including the JS specs as part of the production build.
The text was updated successfully, but these errors were encountered: