You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect to have access to the source map (PreviousMap) within my PostCSS plugin (similar to webpack)
module.exports=postcss.plugin('postcss-extract-media-query',opts=>{return(root,result)=>{// expect root.source.input.map to contain the PreviousMap};});
Since it's working with webpack as expected and the CSS file emitted by parcel contains the source map I assume something is missing in the postcss implementation of parcel.
🔦 Context
I've built my PostCSS plugin with the goal to support as many bundlers & task runners as possible. But without access to the source map I cannot provide 100% compatibility to parcel.
🐛 bug report
I expect to have access to the source map (PreviousMap) within my PostCSS plugin (similar to webpack)
🎛 Configuration (.babelrc, package.json, cli command)
package.json
parcel.js
🤔 Expected Behavior
root.source.input.map
should contain the PreviousMap so I expect😯 Current Behavior
I'm getting
💁 Possible Solution
Since it's working with webpack as expected and the CSS file emitted by parcel contains the source map I assume something is missing in the postcss implementation of parcel.
🔦 Context
I've built my PostCSS plugin with the goal to support as many bundlers & task runners as possible. But without access to the source map I cannot provide 100% compatibility to parcel.
💻 Code Sample
You can find the whole code example here:
https://github.com/SassNinja/postcss-extract-media-query/tree/feature/source-map/examples/parcel
🌍 Your Environment
The text was updated successfully, but these errors were encountered: