Skip to content

Commit 957e9e1

Browse files
committed
pass through multi option
1 parent 32ee0ae commit 957e9e1

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

test/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
5863
test('defaults come out right', (t) => {
5964
const out = standard()
6065
t.truthy(out.parser.name === 'SugarMLParser')

0 commit comments

Comments
 (0)