Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Pass proper loader options to children. #266

Merged

Conversation

izaakschroeder
Copy link
Contributor

@izaakschroeder izaakschroeder commented Oct 7, 2016

Using just the serialized request means that query objects (that is to say, those which are not strings), get munged if they have anything non-serializable in them. This means passing data to postcss via query is impossible. To remedy this, we detect when the original request is being processed and apply the original loader transformations instead of whatever came through the serialized version.

Build seems to be only failing on [email protected] but webpack@2 doesn't support that.. so..

See:

/cc @sokra

Using just the serialized request means that query objects (that is to say, those which are not strings), get munged if they have anything non-serializable in them. This means passing data to `postcss` via `query` is impossible. To remedy this, we detect when the original request is being processed and apply the original loader transformations instead of whatever came through the serialized version.
@codecov-io
Copy link

codecov-io commented Oct 7, 2016

Current coverage is 86.05% (diff: 100%)

Merging #266 into master will increase coverage by 0.21%

@@             master       #266   diff @@
==========================================
  Files             4          4          
  Lines           332        337     +5   
  Methods          68         69     +1   
  Messages          0          0          
  Branches         71         72     +1   
==========================================
+ Hits            285        290     +5   
  Misses           47         47          
  Partials          0          0          

Powered by Codecov. Last update 480a7cb...4a012d3

@izaakschroeder
Copy link
Contributor Author

/ping @sokra

@izaakschroeder
Copy link
Contributor Author

/ping @sokra

@bebraw
Copy link
Contributor

bebraw commented Jan 17, 2017

Looks like a good idea to me. I wouldn't worry about Node 0.12.

@izaakschroeder
Copy link
Contributor Author

/ping @sokra

@bebraw bebraw added this to the Webpack 2 release milestone Jan 26, 2017
@michael-ciniawsky
Copy link
Member

michael-ciniawsky commented Jan 26, 2017

@bebraw @d3viant0ne Ahh... damn 😛 I missed that one, it is actually quite important for postcss-loader, just saw it popping up in timeline.

@izaakschroeder Could you reword the commits to e.g

fix(loader): pass proper loader 'options' to children
chore(package): update loader-utils v0.2.3...0.2.16

🙏 so we can make a quick release ?

@joshwiens joshwiens self-assigned this Jan 26, 2017
@joshwiens
Copy link
Member

@michael-ciniawsky - I'll see to it in a minute.

@joshwiens joshwiens merged commit 6abf42d into webpack-contrib:master Jan 28, 2017
@joshwiens
Copy link
Member

Included in v2.0.0-rc.1

brianhelba added a commit to girder/girder that referenced this pull request May 8, 2017
…nfig

The 'extract-text-webpack-plugin' was already being used at version
'2.1.0' (hence the changes in #1981 ),
so this commit updates the package dependency to ensure that older versions
are not used with the new option syntax.

This new version should now properly pass on options to child loaders (
webpack-contrib/extract-text-webpack-plugin#266 ),
so the options to 'stylus-loader' can now use a clearer syntax. This also
adds a comment to explain a poorly documented 'stylus-loader' option.
brianhelba added a commit to girder/girder that referenced this pull request May 8, 2017
…nfig

The 'extract-text-webpack-plugin' was already being used at version
'2.1.0' (hence the changes in #1981 ),
so this commit updates the package dependency to ensure that older versions
are not used with the new option syntax.

This new version should now properly pass on options to child loaders (
webpack-contrib/extract-text-webpack-plugin#266 ),
so the options to 'stylus-loader' can now use a clearer syntax. This also
adds a comment to explain a poorly documented 'stylus-loader' option.
brianhelba added a commit to girder/girder that referenced this pull request May 9, 2017
…nfig

The 'extract-text-webpack-plugin' was already being used at version
'2.1.0' (hence the changes in #1981 ),
so this commit updates the package dependency to ensure that older versions
are not used with the new option syntax.

This new version should now properly pass on options to child loaders (
webpack-contrib/extract-text-webpack-plugin#266 ),
so the options to 'stylus-loader' can now use a clearer syntax. This also
adds a comment to explain a poorly documented 'stylus-loader' option.
brianhelba added a commit to girder/girder that referenced this pull request May 10, 2017
…nfig

The 'extract-text-webpack-plugin' was already being used at version
'2.1.0' (hence the changes in #1981 ),
so this commit updates the package dependency to ensure that older versions
are not used with the new option syntax.

This new version should now properly pass on options to child loaders (
webpack-contrib/extract-text-webpack-plugin#266 ),
so the options to 'stylus-loader' can now use a clearer syntax. This also
adds a comment to explain a poorly documented 'stylus-loader' option.
brianhelba added a commit to girder/girder that referenced this pull request May 23, 2017
…nfig

The 'extract-text-webpack-plugin' was already being used at version
'2.1.0' (hence the changes in #1981 ),
so this commit updates the package dependency to ensure that older versions
are not used with the new option syntax.

This new version should now properly pass on options to child loaders (
webpack-contrib/extract-text-webpack-plugin#266 ),
so the options to 'stylus-loader' can now use a clearer syntax. This also
adds a comment to explain a poorly documented 'stylus-loader' option.
brianhelba added a commit to girder/girder that referenced this pull request May 24, 2017
…nfig

The 'extract-text-webpack-plugin' was already being used at version
'2.1.0' (hence the changes in #1981 ),
so this commit updates the package dependency to ensure that older versions
are not used with the new option syntax.

This new version should now properly pass on options to child loaders (
webpack-contrib/extract-text-webpack-plugin#266 ),
so the options to 'stylus-loader' can now use a clearer syntax. This also
adds a comment to explain a poorly documented 'stylus-loader' option.
brianhelba added a commit to girder/girder that referenced this pull request May 24, 2017
…nfig

The 'extract-text-webpack-plugin' was already being used at version
'2.1.0' (hence the changes in #1981 ),
so this commit updates the package dependency to ensure that older versions
are not used with the new option syntax.

This new version should now properly pass on options to child loaders (
webpack-contrib/extract-text-webpack-plugin#266 ),
so the options to 'stylus-loader' can now use a clearer syntax. This also
adds a comment to explain a poorly documented 'stylus-loader' option.
brianhelba added a commit to girder/girder that referenced this pull request May 24, 2017
…nfig

The 'extract-text-webpack-plugin' was already being used at version
'2.1.0' (hence the changes in #1981 ),
so this commit updates the package dependency to ensure that older versions
are not used with the new option syntax.

This new version should now properly pass on options to child loaders (
webpack-contrib/extract-text-webpack-plugin#266 ),
so the options to 'stylus-loader' can now use a clearer syntax. This also
adds a comment to explain a poorly documented 'stylus-loader' option.
brianhelba added a commit to girder/girder that referenced this pull request May 24, 2017
…nfig

The 'extract-text-webpack-plugin' was already being used at version
'2.1.0' (hence the changes in #1981 ),
so this commit updates the package dependency to ensure that older versions
are not used with the new option syntax.

This new version should now properly pass on options to child loaders (
webpack-contrib/extract-text-webpack-plugin#266 ),
so the options to 'stylus-loader' can now use a clearer syntax. This also
adds a comment to explain a poorly documented 'stylus-loader' option.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants