Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit f8a7254

Browse files
author
Day
authored
feat: css preprocess options (#360)
1 parent 7cd7446 commit f8a7254

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export interface Options {
4848
// sfc style options
4949
preprocessCustomRequire?: SFCAsyncStyleCompileOptions['preprocessCustomRequire']
5050
cssModulesOptions?: SFCAsyncStyleCompileOptions['modulesOptions']
51+
preprocessOptions?: SFCAsyncStyleCompileOptions['preprocessOptions']
5152
}
5253

5354
const defaultOptions: Options = {
@@ -191,6 +192,7 @@ export default function PluginVue(userOptions: Partial<Options> = {}): Plugin {
191192
? (block.lang as any)
192193
: undefined,
193194
preprocessCustomRequire: options.preprocessCustomRequire,
195+
preprocessOptions: options.preprocessOptions || {},
194196
})
195197

196198
if (result.errors.length) {

0 commit comments

Comments
 (0)