feat(compiler): add isNativeTag option for determining element type (#139)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
export * from './patchFlags'
|
||||
export * from './element'
|
||||
export { globalsWhitelist } from './globalsWhitelist'
|
||||
|
||||
export const EMPTY_OBJ: { readonly [key: string]: any } = __DEV__
|
||||
@@ -8,6 +9,11 @@ export const EMPTY_ARR: [] = []
|
||||
|
||||
export const NOOP = () => {}
|
||||
|
||||
/**
|
||||
* Always return false.
|
||||
*/
|
||||
export const NO = () => false
|
||||
|
||||
export const isOn = (key: string) => key[0] === 'o' && key[1] === 'n'
|
||||
|
||||
export const extend = <T extends object, U extends object>(
|
||||
|
||||
Reference in New Issue
Block a user