Skip to content

Instantly share code, notes, and snippets.

@IWANABETHATGUY
Last active July 8, 2024 13:35
Show Gist options
  • Save IWANABETHATGUY/c7911ecd98467a2969b2a994a34d32bc to your computer and use it in GitHub Desktop.
Save IWANABETHATGUY/c7911ecd98467a2969b2a994a34d32bc to your computer and use it in GitHub Desktop.
packages/runtime-dom/src/nodeOps.ts
8:const templateContainer = doc && /*#__PURE__*/ doc.createElement('template')
packages/runtime-dom/src/index.ts
35:const rendererOptions = /*#__PURE__*/ extend({ patchProp }, nodeOps)
packages/runtime-dom/src/components/Transition.ts
78: /*#__PURE__*/ extend(
packages/runtime-dom/src/components/TransitionGroup.ts
43: props: /*#__PURE__*/ extend({}, TransitionPropsValidators, {
168:/*#__PURE__*/ removeMode(TransitionGroupImpl.props)
packages/compiler-core/__tests__/scopeId.spec.ts
75: `const _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode("div", null, "hello", ${genFlagText(
78: `const _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode("div", null, "world", ${genFlagText(
100: `const _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode("div", null, "hello", ${genFlagText(
103: `const _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode("div", null, "world", ${genFlagText(
packages/runtime-dom/src/modules/attrs.ts
51: ? /*#__PURE__*/ makeMap('contenteditable,draggable,spellcheck')
packages/runtime-dom/src/modules/events.ts
89:const p = /*#__PURE__*/ Promise.resolve()
packages/compiler-core/src/codegen.ts
98:const PURE_ANNOTATION = `/*#__PURE__*/`
590: needScopeIdWrapper ? `${PURE_ANNOTATION} _withScopeId(() => ` : ``
781: if (pure) push(PURE_ANNOTATION)
824: push(PURE_ANNOTATION)
853: push(PURE_ANNOTATION)
887: push(PURE_ANNOTATION)
packages/compiler-sfc/__tests__/compileScript.spec.ts
1355: `const _sfc_ = /*#__PURE__*/Object.assign(__default__`,
1374: `const _sfc_ = /*#__PURE__*/Object.assign(__default__`,
1403: expect(content).toMatch(`const _sfc_ = /*#__PURE__*/_defineComponent(`)
1421: `const _sfc_ = /*#__PURE__*/_defineComponent({\n ...__default__`,
packages/compiler-sfc/__tests__/compileScript/defineEmits.spec.ts
34: expect(content).toMatch(`export default /*#__PURE__*/_defineComponent({
packages/compiler-sfc/__tests__/compileScript/defineModel.spec.ts
50: expect(content).toMatch(`props: /*#__PURE__*/_mergeModels({ foo: String }`)
71: expect(content).toMatch(`props: /*#__PURE__*/_mergeModels(['foo', 'bar'], {
packages/compiler-sfc/__tests__/compileScript/defineProps.spec.ts
67: expect(content).toMatch(`export default /*#__PURE__*/_defineComponent({
packages/compiler-sfc/__tests__/compileScript/definePropsDestructure.spec.ts
82: .toMatch(`props: /*#__PURE__*/_mergeDefaults(['foo', 'bar', 'baz'], {
102: .toMatch(`props: /*#__PURE__*/_mergeDefaults({ foo: Number, bar: Object, func: Function, ext: null }, {
126: props: /*#__PURE__*/_mergeDefaults(['foo', 'foo:bar'], {
packages/compiler-sfc/__tests__/compileScript/defineOptions.spec.ts
15: `export default /*#__PURE__*/Object.assign({ name: 'FooApp' }, `,
packages/reactivity/src/baseHandlers.ts
33:const isNonTrackableKeys = /*#__PURE__*/ makeMap(`__proto__,__v_isRef,__isVue`)
36: /*#__PURE__*/
46:const arrayInstrumentations = /*#__PURE__*/ createArrayInstrumentations()
268: /*#__PURE__*/ new MutableReactiveHandler()
271: /*#__PURE__*/ new ReadonlyReactiveHandler()
273:export const shallowReactiveHandlers = /*#__PURE__*/ new MutableReactiveHandler(
281: /*#__PURE__*/ new ReadonlyReactiveHandler(true)
packages/compiler-sfc/src/script/defineEmits.ts
65: ? `/*#__PURE__*/${ctx.helper(
packages/server-renderer/src/helpers/ssrRenderAttrs.ts
20:const shouldIgnoreProp = /*#__PURE__*/ makeMap(
packages/compiler-sfc/src/script/defineProps.ts
150: propsDecls = `/*#__PURE__*/${ctx.helper(
162: return `/*#__PURE__*/${ctx.helper(
194: propsDecls = `/*#__PURE__*/${ctx.helper(
packages/reactivity/src/collectionHandlers.ts
338:] = /* #__PURE__*/ createInstrumentations()
373: get: /*#__PURE__*/ createInstrumentationGetter(false, false),
377: get: /*#__PURE__*/ createInstrumentationGetter(false, true),
381: get: /*#__PURE__*/ createInstrumentationGetter(true, false),
386: get: /*#__PURE__*/ createInstrumentationGetter(true, true),
packages/compiler-core/src/transforms/transformExpression.ts
47:const isLiteralWhitelisted = /*#__PURE__*/ makeMap('true,false,null,this')
packages/compiler-sfc/src/compileScript.ts
980: `\n${genDefaultAs} /*#__PURE__*/${ctx.helper(
993: `\n${genDefaultAs} /*#__PURE__*/Object.assign(${
packages/runtime-core/src/scheduler.ts
46:const resolvedPromise = /*#__PURE__*/ Promise.resolve() as Promise<any>
packages/runtime-core/src/devtools.ts
103:export const devtoolsComponentAdded = /*#__PURE__*/ createDevtoolsComponentHook(
108: /*#__PURE__*/ createDevtoolsComponentHook(DevtoolsHooks.COMPONENT_UPDATED)
110:const _devtoolsComponentRemoved = /*#__PURE__*/ createDevtoolsComponentHook(
140:export const devtoolsPerfStart = /*#__PURE__*/ createDevtoolsPerformanceHook(
144:export const devtoolsPerfEnd = /*#__PURE__*/ createDevtoolsPerformanceHook(
packages/runtime-core/src/componentPublicInstance.ts
264: // Move PURE marker to new line to workaround compiler discarding it
266: /*#__PURE__*/ extend(Object.create(null), {
516:export const RuntimeCompiledPublicInstanceProxyHandlers = /*#__PURE__*/ extend(
packages/runtime-core/src/apiDefineComponent.ts
308: /*#__PURE__*/ (() =>
packages/runtime-core/src/compat/compatConfig.ts
512:const seenConfigObjects = /*#__PURE__*/ new WeakSet<CompatConfig>()
packages/runtime-core/src/compat/renderFn.ts
173:const skipLegacyRootLevelProps = /*#__PURE__*/ makeMap(
packages/runtime-core/src/componentProps.ts
698:const isSimpleType = /*#__PURE__*/ makeMap(
packages/runtime-core/src/compat/instanceEventEmitter.ts
10:const eventRegistryMap = /*#__PURE__*/ new WeakMap<
packages/runtime-core/src/compat/renderHelpers.ts
117:const staticCacheMap = /*#__PURE__*/ new WeakMap<
packages/runtime-core/src/component.ts
717:const isBuiltInTag = /*#__PURE__*/ makeMap('slot,component')
packages/compiler-dom/src/transforms/vOn.ts
20:const isEventOptionModifier = /*#__PURE__*/ makeMap(`passive,once,capture`)
21:const isNonKeyModifier = /*#__PURE__*/ makeMap(
30:const maybeKeyModifier = /*#__PURE__*/ makeMap('left,right')
31:const isKeyboardEvent = /*#__PURE__*/ makeMap(
packages/compiler-dom/src/transforms/stringifyStatic.ts
171:const isNonStringifiable = /*#__PURE__*/ makeMap(
packages/shared/src/domAttrConfig.ts
15:export const isSpecialBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs)
20:export const isBooleanAttr = /*#__PURE__*/ makeMap(
62:export const isKnownHtmlAttr = /*#__PURE__*/ makeMap(
83:export const isKnownSvgAttr = /*#__PURE__*/ makeMap(
packages/shared/src/domTagConfig.ts
45:export const isHTMLTag = /*#__PURE__*/ makeMap(HTML_TAGS)
50:export const isSVGTag = /*#__PURE__*/ makeMap(SVG_TAGS)
55:export const isMathMLTag = /*#__PURE__*/ makeMap(MATH_TAGS)
60:export const isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS)
packages/shared/src/globalsAllowList.ts
8:export const isGloballyAllowed = /*#__PURE__*/ makeMap(GLOBALS_ALLOWED)
packages/shared/src/general.ts
81:export const isReservedProp = /*#__PURE__*/ makeMap(
89:export const isBuiltInDirective = /*#__PURE__*/ makeMap(
packages/shared/src/makeMap.ts
5: * \/\*#\_\_PURE\_\_\*\/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment