esbuild-plugin-vue3
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -332,4 +332,5 @@ "use strict"; | ||
var _a, descriptor, index, id, style, includedFiles, result, errors; | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
var _b, _c; | ||
return __generator(this, function (_d) { | ||
switch (_d.label) { | ||
case 0: | ||
@@ -343,2 +344,4 @@ _a = args.pluginData, descriptor = _a.descriptor, index = _a.index, id = _a.id; | ||
source: style.content, | ||
postcssOptions: (_b = opts.postcss) === null || _b === void 0 ? void 0 : _b.options, | ||
postcssPlugins: (_c = opts.postcss) === null || _c === void 0 ? void 0 : _c.plugins, | ||
preprocessLang: style.lang, | ||
@@ -363,3 +366,3 @@ preprocessOptions: { | ||
case 1: | ||
result = _b.sent(); | ||
result = _d.sent(); | ||
if (result.errors.length > 0) { | ||
@@ -366,0 +369,0 @@ errors = result.errors; |
@@ -46,2 +46,9 @@ import { DirectiveNode, ElementNode, TransformContext } from "@vue/compiler-core"; | ||
directiveTransforms?: Record<string, string | false | ((dir: DirectiveNode, node: ElementNode, context: TransformContext) => string | undefined)>; | ||
/** | ||
* Options and plugins to pass to the PostCSS postprocessor. | ||
*/ | ||
postcss?: { | ||
options?: any; | ||
plugins?: any[]; | ||
}; | ||
}; |
{ | ||
"name": "esbuild-plugin-vue3", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
59015
943