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

replaced calls to Object.assign with objectAssign to support node 0.12.x #3080

Merged
merged 1 commit into from
Sep 30, 2016
Merged

replaced calls to Object.assign with objectAssign to support node 0.12.x #3080

merged 1 commit into from
Sep 30, 2016

Conversation

MarkusKramer
Copy link
Contributor

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

  • [ x] Bugfix

What is the current behavior?
Issue #3041. With node 0.12.x it fails with

/node_modules/webpack/lib/NormalModuleFactory.js:217
            return callback(null, Object.assign({}, item, {
                                         ^
TypeError: undefined is not a function

Does this PR introduce a breaking change?

  • Yes
  • No

@sokra
Copy link
Member

sokra commented Sep 29, 2016

Thanks for the fix.

@sokra
Copy link
Member

sokra commented Sep 29, 2016

@theLarkin merge it. Can't merge from phone. A test for module.rules[].parser.node may be added.

@TheLarkInn
Copy link
Member

@MarkusKramer would you be willing to write the test for this? Otherwise make an issue for the test and I'll merge.

@MarkusKramer
Copy link
Contributor Author

Sorry, I know next to nothing about these three modules and don't feel that I could write a test for them.
I could rewrite it to

require('object-assign')({}, localOptions, parserOptions.node);

to increase test coverage ;-) (jocking)

@TheLarkInn I've created issue #3081

@TheLarkInn TheLarkInn merged commit 9c5c6df into webpack:master Sep 30, 2016
amsdamsgram added a commit to amsdamsgram/webpack that referenced this pull request Oct 6, 2016
* master: (77 commits)
  remove-automatic-loader-extension: update examples
  fix-2986: Remove automatic -loader module name extension
  replaced calls to Object.assign with objectAssign to support node 0.12.x (webpack#3080)
  docs(example): update examples template (webpack#3074)
  Fix plugin typos in options validation
  feat(readme): add jsbeautify-loader to readme (webpack#3062)
  Update loader utils dependency to fix webpack#3060
  add number for schema info
  2.1.0-beta.25
  fix test
  fixed Validation message
  fixed dll test cases
  fixed browsertest
  added a note about applying the LoaderOptionsPlugin only for some modules
  added another custom error message for the debug property
  Adds empty into schema for node (webpack#3034)
  Moving parsing of the `progress` flag to webpack specific bin
  2.1.0-beta.24
  beautify
  fixed max line length
  ...
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.

None yet

3 participants