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

fix(@ngtools/webpack): files are not being updated when using allowJs or resolveJsonModule #13089

Merged
merged 3 commits into from Nov 30, 2018
Merged

fix(@ngtools/webpack): files are not being updated when using allowJs or resolveJsonModule #13089

merged 3 commits into from Nov 30, 2018

Conversation

alan-agius4
Copy link
Collaborator

Fixes #13076 and Fixes #12964

@ngbot
Copy link

ngbot bot commented Nov 29, 2018

Artifact Baseline Current Change
cli/new-production/test-project/main.js 173.60KB 174.00KB +409 bytes

@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Nov 29, 2018
Copy link
Contributor

@filipesilva filipesilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice fix!

@angular angular deleted a comment from ngbot bot Nov 29, 2018
When not using `allowJs` js files are not processed by the tsc compiler, but still processed by webpack.

So a correct test should be to check that the JS is transpiled down to ES5 syntax.
@alan-agius4 alan-agius4 added target: patch This PR is targeted for the next patch release and removed target: patch This PR is targeted for the next patch release labels Nov 30, 2018
@alan-agius4 alan-agius4 removed the request for review from clydin November 30, 2018 20:09
@vikerman vikerman merged commit 8bc6e79 into angular:master Nov 30, 2018
vikerman pushed a commit that referenced this pull request Nov 30, 2018
…s` or `resolveJsonModule` (#13089)

* fix(@ngtools/webpack): files are not being updated when using `allowJs` or `resolveJsonModule`

Fixes #13076 and Fixes #12964

* test: add tests for allowJs and resolveJsonModule in watch mode

* test: improve tests for `allowJs`

When not using `allowJs` js files are not processed by the tsc compiler, but still processed by webpack.

So a correct test should be to check that the JS is transpiled down to ES5 syntax.
@alan-agius4 alan-agius4 deleted the fix_resolve_json_allow_js branch December 1, 2018 06:34
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: patch This PR is targeted for the next patch release
Projects
None yet
4 participants