File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,8 @@ function withConfigLoader(cb) {
127127 } else {
128128 configPath = file . dirname
129129 }
130+ // @TODO : The options property is deprecated and should be removed in 10.0.0.
131+ contextOptions . options = Object . assign ( { } , contextOptions )
130132 contextOptions . file = file
131133 return postcssLoadConfig (
132134 contextOptions ,
Original file line number Diff line number Diff line change @@ -329,7 +329,8 @@ describe('PostCSS Guidelines', function () {
329329 stream . on ( 'data' , function ( ) {
330330 assert . deepEqual ( postcssLoadConfigStub . getCall ( 0 ) . args [ 0 ] , {
331331 file : file ,
332- to : 'initial'
332+ to : 'initial' ,
333+ options : { to : 'initial' }
333334 } )
334335 assert . equal ( postcssStub . use . getCall ( 0 ) . args [ 0 ] , plugins )
335336 assert . equal ( postcssStub . process . getCall ( 0 ) . args [ 1 ] . to , 'overriden' )
You can’t perform that action at this time.
0 commit comments