mirror of https://github.com/vuejs/core.git
wip: fix dts tests
This commit is contained in:
parent
6fc8d5d0ba
commit
8ba3a7de40
|
@ -7,7 +7,8 @@ export {
|
||||||
TransformOptions,
|
TransformOptions,
|
||||||
CodegenOptions,
|
CodegenOptions,
|
||||||
HoistTransform,
|
HoistTransform,
|
||||||
BindingMetadata
|
BindingMetadata,
|
||||||
|
BindingTypes
|
||||||
} from './options'
|
} from './options'
|
||||||
export { baseParse, TextModes } from './parse'
|
export { baseParse, TextModes } from './parse'
|
||||||
export {
|
export {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import MagicString from 'magic-string'
|
import MagicString from 'magic-string'
|
||||||
import { BindingMetadata } from '@vue/compiler-core'
|
import { BindingMetadata, BindingTypes } from '@vue/compiler-core'
|
||||||
import { SFCDescriptor, SFCScriptBlock } from './parse'
|
import { SFCDescriptor, SFCScriptBlock } from './parse'
|
||||||
import { parse as _parse, ParserOptions, ParserPlugin } from '@babel/parser'
|
import { parse as _parse, ParserOptions, ParserPlugin } from '@babel/parser'
|
||||||
import { babelParserDefaultPlugins, generateCodeFrame } from '@vue/shared'
|
import { babelParserDefaultPlugins, generateCodeFrame } from '@vue/shared'
|
||||||
|
@ -26,7 +26,6 @@ import { walk } from 'estree-walker'
|
||||||
import { RawSourceMap } from 'source-map'
|
import { RawSourceMap } from 'source-map'
|
||||||
import { genCssVarsCode, injectCssVarsCalls } from './genCssVars'
|
import { genCssVarsCode, injectCssVarsCalls } from './genCssVars'
|
||||||
import { compileTemplate, SFCTemplateCompileOptions } from './compileTemplate'
|
import { compileTemplate, SFCTemplateCompileOptions } from './compileTemplate'
|
||||||
import { BindingTypes } from 'packages/compiler-core/src/options'
|
|
||||||
|
|
||||||
const USE_OPTIONS = 'useOptions'
|
const USE_OPTIONS = 'useOptions'
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { h, reactive, createApp, ref } from 'vue'
|
import { h, reactive, createApp, ref } from 'vue'
|
||||||
import { CompilerOptions } from '@vue/compiler-dom'
|
import { CompilerOptions } from '@vue/compiler-dom'
|
||||||
|
import { BindingTypes } from '@vue/compiler-core'
|
||||||
|
|
||||||
export const ssrMode = ref(false)
|
export const ssrMode = ref(false)
|
||||||
|
|
||||||
|
@ -12,9 +13,9 @@ export const compilerOptions: CompilerOptions = reactive({
|
||||||
scopeId: null,
|
scopeId: null,
|
||||||
ssrCssVars: `{ color }`,
|
ssrCssVars: `{ color }`,
|
||||||
bindingMetadata: {
|
bindingMetadata: {
|
||||||
TestComponent: 'setup',
|
TestComponent: BindingTypes.SETUP,
|
||||||
foo: 'setup',
|
foo: BindingTypes.SETUP,
|
||||||
bar: 'props'
|
bar: BindingTypes.PROPS
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue