We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8d58ec commit 274f6f7Copy full SHA for 274f6f7
packages/compiler-sfc/__tests__/parse.spec.ts
@@ -367,6 +367,18 @@ h1 { color: red }
367
tag: 'hello',
368
tagType: ElementTypes.ELEMENT,
369
})
370
+
371
+ // test cache invalidation on different options
372
+ const { descriptor: d2 } = parse(`<template><hello/></template>`, {
373
+ templateParseOptions: {
374
+ isCustomElement: t => t !== 'hello',
375
+ },
376
+ })
377
+ expect(d2.template!.ast!.children[0]).toMatchObject({
378
+ type: NodeTypes.ELEMENT,
379
+ tag: 'hello',
380
+ tagType: ElementTypes.COMPONENT,
381
382
383
384
describe('warnings', () => {
0 commit comments