文件名称:vite-plugin-vue2:Vite的Vue2插件
文件大小:149KB
文件格式:ZIP
更新时间:2024-04-20 15:00:56
TypeScript
vite-plugin-vue2 用法 运行yarn add vite-plugin-vue2 --dev 将插件添加到vite.config.js // vite.config.js const { createVuePlugin } = require ( 'vite-plugin-vue2' ) module . exports = { plugins : [ createVuePlugin ( /*options*/ ) ] , } vueTemplateOptions 类型: Object 默认值: null @vue/component-compiler-utils 。 jsx 类型: Boolean 默认值: false jsx转换的选项。 jsxOptions 类型: Object @vue/babel-preset-jsx 。 去做 SSR构建 源图
【文件预览】:
vite-plugin-vue2-master
----.github()
--------workflows()
----yarn.lock(259KB)
----src()
--------main.ts(10KB)
--------utils()
--------style.ts(925B)
--------index.ts(4KB)
--------jsxTransform.ts(611B)
--------template.ts(2KB)
--------template()
--------hmr.ts(4KB)
----playground()
--------hmr()
--------index.html(310B)
--------main.js(104B)
--------public()
--------yarn.lock(3KB)
--------test-assets()
--------vite.config.ts(305B)
--------TestJsx.tsx(112B)
--------App.vue(759B)
--------src-import()
--------TestJsxSFC.vue(152B)
--------css()
--------package.json(266B)
----README.MD(654B)
----tsconfig.json(415B)
----test()
--------test.spec.ts(590B)
--------util.ts(6KB)
----jest.config.js(196B)
----.prettierrc(45B)
----index.d.ts(46B)
----.gitignore(67B)
----CHANGELOG.md(9KB)
----package.json(2KB)