@vitejs/plugin-vue
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -0,1 +1,11 @@ | ||
## [1.0.5](https://github.com/vitejs/vite/compare/plugin-vue@1.0.4...plugin-vue@1.0.5) (2021-01-09) | ||
### Bug Fixes | ||
* **plugin-vue:** default pug doctype ([756a0f2](https://github.com/vitejs/vite/commit/756a0f26911e5bff9c1ea3f780a0a1eccd1f1cfd)), closes [#1383](https://github.com/vitejs/vite/issues/1383) | ||
* **plugin-vue:** pass on script and style options to compiler-sfc ([0503d42](https://github.com/vitejs/vite/commit/0503d42aaddbc4b8428c94ede07cf7b84f800cef)), closes [#1450](https://github.com/vitejs/vite/issues/1450) | ||
## [1.0.4](https://github.com/vitejs/vite/compare/plugin-vue@1.0.3...plugin-vue@1.0.4) (2021-01-04) | ||
@@ -2,0 +12,0 @@ |
{ | ||
"name": "@vitejs/plugin-vue", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Evan You", |
@@ -1,2 +0,2 @@ | ||
# @vitejs/plugin-vue | ||
# @vitejs/plugin-vue [![npm](https://img.shields.io/npm/v/@vitejs/plugin-vue.svg)](https://npmjs.com/package/@vitejs/plugin-vue) | ||
@@ -25,12 +25,29 @@ Note: requires `@vue/compiler-sfc` as peer dependency. This is largely a port of `rollup-plugin-vue` with some vite-specific tweaks. | ||
// options to pass on to @vue/compiler-sfc | ||
script?: SFCScriptCompileOptions | ||
template?: SFCTemplateCompileOptions | ||
style?: SFCStyleCompileOptions | ||
script?: Partial<SFCScriptCompileOptions> | ||
template?: Partial<SFCTemplateCompileOptions> | ||
style?: Partial<SFCStyleCompileOptions> | ||
} | ||
``` | ||
## Example for passing options to `@vue/compiler-dom`: | ||
```ts | ||
import vue from '@vitejs/plugin-vue' | ||
export default { | ||
plugins: [ | ||
vue({ | ||
template: { | ||
compilerOptions: { | ||
// ... | ||
} | ||
} | ||
}) | ||
] | ||
} | ||
``` | ||
## Example for transforming custom blocks | ||
```ts | ||
// vite.config.js | ||
import vue from '@vitejs/plugin-vue' | ||
@@ -56,6 +73,6 @@ | ||
} | ||
``` | ||
``` | ||
## License | ||
MIT | ||
MIT |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
172228
4998
77