Skip to content

Conversation

@tomaskallup
Copy link
Contributor

@tomaskallup tomaskallup commented Aug 20, 2018

Currently, the noEmit option is being deleted from the options object.
This causes troubles if webpack is processing multiple files as it does not recreate the options and just reuses it so first file would not emit changes but subsequent would.

I've also made change to readme, where I updated the syntax for preloaders for new webpack.

index.js Outdated
delete options.noEmit;

// Make sure to not modify options object directly
var creatorOptions = JSON.parse(JSON.stringify(options));
Copy link
Owner

Choose a reason for hiding this comment

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

Cannot we use Object.assign here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, no need for deep copy, fixed.

@olegstepura olegstepura merged commit d4e269e into olegstepura:master Aug 20, 2018
@olegstepura
Copy link
Owner

Merged and released typed-css-modules-loader@0.0.14.
Thanks for the PR

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

Successfully merging this pull request may close these issues.

2 participants