@vue-macros/named-template
Advanced tools
Comparing version 0.5.1 to 0.5.2
import { MagicStringAST, CodeTransform } from '@vue-macros/common'; | ||
import { ElementNode, NodeTransform, RootNode } from '@vue/compiler-dom'; | ||
import { T as TemplateContent, C as CustomBlocks } from './index.d-Ccebqmdc.js'; | ||
export { M as MAIN_TEMPLATE, Q as QUERY_NAMED_TEMPLATE, a as QUERY_TEMPLATE, b as QUERY_TEMPLATE_MAIN } from './index.d-Ccebqmdc.js'; | ||
import { T as TemplateContent, C as CustomBlocks } from './index.d-W6eQ-3Iq.js'; | ||
export { M as MAIN_TEMPLATE, Q as QUERY_NAMED_TEMPLATE, a as QUERY_TEMPLATE, b as QUERY_TEMPLATE_MAIN } from './index.d-W6eQ-3Iq.js'; | ||
import { Program } from '@babel/types'; | ||
@@ -10,17 +10,17 @@ import 'unplugin'; | ||
interface VueQuery { | ||
vue?: boolean; | ||
src?: string; | ||
type?: 'script' | 'template' | 'style' | 'custom'; | ||
index?: number; | ||
lang?: string; | ||
raw?: boolean; | ||
url?: boolean; | ||
scoped?: boolean; | ||
vue?: boolean; | ||
src?: string; | ||
type?: "script" | "template" | "style" | "custom"; | ||
index?: number; | ||
lang?: string; | ||
raw?: boolean; | ||
url?: boolean; | ||
scoped?: boolean; | ||
} | ||
/** | ||
* Copy from https://github.com/vitejs/vite-plugin-vue/blob/797e424e46600c93fa76a4ef8befc08ef6b5abdb/packages/plugin-vue/src/utils/query.ts#L12 | ||
*/ | ||
* Copy from https://github.com/vitejs/vite-plugin-vue/blob/797e424e46600c93fa76a4ef8befc08ef6b5abdb/packages/plugin-vue/src/utils/query.ts#L12 | ||
*/ | ||
declare function parseVueRequest(id: string): { | ||
filename: string; | ||
query: VueQuery; | ||
filename: string; | ||
query: VueQuery; | ||
}; | ||
@@ -30,8 +30,8 @@ | ||
declare function preTransform(code: string, id: string, templateContent: TemplateContent): CodeTransform | undefined; | ||
declare function preTransformMainTemplate({ s, root, node, id, templateContent, }: { | ||
s: MagicStringAST; | ||
root: RootNode; | ||
node: ElementNode; | ||
id: string; | ||
templateContent: TemplateContent; | ||
declare function preTransformMainTemplate({ s, root, node, id, templateContent }: { | ||
s: MagicStringAST; | ||
root: RootNode; | ||
node: ElementNode; | ||
id: string; | ||
templateContent: TemplateContent; | ||
}): void; | ||
@@ -38,0 +38,0 @@ declare function postTransform(code: string, id: string, customBlocks: CustomBlocks): CodeTransform | undefined; |
@@ -1,2 +0,2 @@ | ||
import { p as plugin } from './index.d-Ccebqmdc.js'; | ||
import { p as plugin } from './index.d-W6eQ-3Iq.js'; | ||
import '@vue-macros/common'; | ||
@@ -3,0 +3,0 @@ import 'unplugin'; |
import '@vue-macros/common'; | ||
import 'unplugin'; | ||
export { C as CustomBlocks, O as Options, c as OptionsResolved, d as PostPlugin, P as PrePlugin, T as TemplateContent, p as default } from './index.d-Ccebqmdc.js'; | ||
export { C as CustomBlocks, O as Options, c as OptionsResolved, d as PostPlugin, P as PrePlugin, T as TemplateContent, p as default } from './index.d-W6eQ-3Iq.js'; |
@@ -1,2 +0,2 @@ | ||
import { p as plugin } from './index.d-Ccebqmdc.js'; | ||
import { p as plugin } from './index.d-W6eQ-3Iq.js'; | ||
import '@vue-macros/common'; | ||
@@ -3,0 +3,0 @@ import 'unplugin'; |
@@ -1,2 +0,2 @@ | ||
import { p as plugin } from './index.d-Ccebqmdc.js'; | ||
import { p as plugin } from './index.d-W6eQ-3Iq.js'; | ||
import '@vue-macros/common'; | ||
@@ -3,0 +3,0 @@ import 'unplugin'; |
@@ -1,2 +0,2 @@ | ||
import { p as plugin } from './index.d-Ccebqmdc.js'; | ||
import { p as plugin } from './index.d-W6eQ-3Iq.js'; | ||
import '@vue-macros/common'; | ||
@@ -3,0 +3,0 @@ import 'unplugin'; |
@@ -1,2 +0,2 @@ | ||
import { p as plugin } from './index.d-Ccebqmdc.js'; | ||
import { p as plugin } from './index.d-W6eQ-3Iq.js'; | ||
import '@vue-macros/common'; | ||
@@ -3,0 +3,0 @@ import 'unplugin'; |
@@ -1,2 +0,2 @@ | ||
import { p as plugin } from './index.d-Ccebqmdc.js'; | ||
import { p as plugin } from './index.d-W6eQ-3Iq.js'; | ||
import '@vue-macros/common'; | ||
@@ -3,0 +3,0 @@ import 'unplugin'; |
{ | ||
"name": "@vue-macros/named-template", | ||
"version": "0.5.1", | ||
"description": "named-template feature from Vue Macros.", | ||
"version": "0.5.2", | ||
"description": "namedTemplate feature from Vue Macros.", | ||
"type": "module", | ||
@@ -80,8 +80,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@vue/compiler-dom": "^3.5.4", | ||
"@vue/compiler-dom": "^3.5.12", | ||
"unplugin": "^1.14.1", | ||
"@vue-macros/common": "1.14.0" | ||
"@vue-macros/common": "1.15.0" | ||
}, | ||
"devDependencies": { | ||
"vue": "^3.5.4" | ||
"vue": "^3.5.12" | ||
}, | ||
@@ -88,0 +88,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
35604
806
+ Added@babel/parser@7.26.8(transitive)
+ Added@babel/types@7.26.8(transitive)
+ Added@vue-macros/common@1.15.0(transitive)
- Removed@babel/parser@7.26.7(transitive)
- Removed@babel/types@7.26.7(transitive)
- Removed@vue-macros/common@1.14.0(transitive)
Updated@vue-macros/common@1.15.0
Updated@vue/compiler-dom@^3.5.12