|
@@ -2,6 +2,7 @@ import { baseCompile, CompilerOptions, CodegenResult } from '@vue/compiler-core'
|
|
|
import { parserOptionsMinimal } from './parserOptionsMinimal'
|
|
import { parserOptionsMinimal } from './parserOptionsMinimal'
|
|
|
import { parserOptionsStandard } from './parserOptionsStandard'
|
|
import { parserOptionsStandard } from './parserOptionsStandard'
|
|
|
import { transformStyle } from './transforms/transformStyle'
|
|
import { transformStyle } from './transforms/transformStyle'
|
|
|
|
|
+import { transformCloak } from './transforms/vCloak'
|
|
|
import { transformVHtml } from './transforms/vHtml'
|
|
import { transformVHtml } from './transforms/vHtml'
|
|
|
|
|
|
|
|
export function compile(
|
|
export function compile(
|
|
@@ -13,6 +14,7 @@ export function compile(
|
|
|
...(__BROWSER__ ? parserOptionsMinimal : parserOptionsStandard),
|
|
...(__BROWSER__ ? parserOptionsMinimal : parserOptionsStandard),
|
|
|
nodeTransforms: [transformStyle, ...(options.nodeTransforms || [])],
|
|
nodeTransforms: [transformStyle, ...(options.nodeTransforms || [])],
|
|
|
directiveTransforms: {
|
|
directiveTransforms: {
|
|
|
|
|
+ cloak: transformCloak,
|
|
|
html: transformVHtml,
|
|
html: transformVHtml,
|
|
|
...(options.directiveTransforms || {})
|
|
...(options.directiveTransforms || {})
|
|
|
}
|
|
}
|