(
blockOptions: TransformOptions | false | undefined,
serializeOptions: WorkerSerializeOptions
)
| 54 | let devComponent: DevComponent | null = null |
| 55 | |
| 56 | const { |
| 57 | component: componentOptions, |
| 58 | css: cssOptions, |
| 59 | js: jsOptions, |
| 60 | ...rest |
| 61 | } = plugin?.code ?? {} |
| 62 | const usesVariableTransform = (blockOptions: TransformOptions | false | undefined) => |
| 63 | !!blockOptions && typeof blockOptions.transformVariable === 'function' |
| 64 | const serializeBlock = ( |
| 65 | blockOptions: TransformOptions | false | undefined, |
| 66 | serializeOptions: WorkerSerializeOptions |
| 67 | ) => { |
| 68 | const usePluginVariableStyle = usesVariableTransform(blockOptions) |
| 69 | const transformOptions = blockOptions || undefined |
| 70 | const blockStyle = usePluginVariableStyle ? (pluginVariableStyle ?? style) : style |
| 71 | const context = variableSyntax && !usePluginVariableStyle ? { variableSyntax } : undefined |
| 72 |
no test coverage detected