File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ Any of these plugins can be customized by passing options described below.
9898| ** prependPlugins** | Adds a single plugin or array of plugins before all the defaults | |
9999| ** template** | Set this to ` true ` if you are trying to output a client-side template function. | false |
100100| ** locals** | Optionally set your locals as soon as expressions are evaluated. | |
101+ | ** multi** | Pass through feature specific to [ reshape-loader] ( https://github.com/reshape/loader#producing-multiple-outputs-from-a-single-files ) | |
101102
102103### Markdown Rendering Functions
103104
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ module.exports = function reshapeStandard (options = {}) {
9696 parser : parserOpt ,
9797 locals : options . locals ,
9898 filename : options . filename ,
99+ multi : options . multi ,
99100 plugins
100101 }
101102}
Original file line number Diff line number Diff line change @@ -55,6 +55,11 @@ test('filename passed correctly', (t) => {
5555 t . truthy ( out . filename === 'test' )
5656} )
5757
58+ test ( 'multi option passed correctly' , ( t ) => {
59+ const out = standard ( { multi : 'test' } )
60+ t . truthy ( out . multi === 'test' )
61+ } )
62+
5863test ( 'defaults come out right' , ( t ) => {
5964 const out = standard ( )
6065 t . truthy ( out . parser . name === 'SugarMLParser' )
You can’t perform that action at this time.
0 commit comments