|
1 | 1 | # vue3-sfc-loader
|
2 | 2 |
|
3 |
| -Vue3 Single File Component loader. |
| 3 | +Vue3/Vue2 Single File Component loader. |
4 | 4 | Load .vue files dynamically at runtime from your html/js. No node.js environment, no (webpack) build step needed.
|
5 | 5 |
|
6 | 6 |
|
7 | 7 | ## Key Features
|
8 | 8 |
|
9 |
| - * Only requires [Vue3 runtime](https://unpkg.com/vue@next/dist/vue.runtime.global.prod.js) |
| 9 | + * Only requires Vue runtime-only build |
10 | 10 | * Focuses on component compilation. Network, styles injection and cache are up to you (see [example below](#example))
|
11 | 11 | * Embedded ES6 modules support ( including `import()` )
|
12 | 12 | * SFC Custom Blocks support
|
13 | 13 | * Support custom CSS, HTML and Script language, see [pug](docs/examples.md#using-another-template-language-pug) and [stylus](docs/examples.md#using-another-style-language-stylus) examples
|
14 | 14 | * Properly reports template, style or script errors through the [log callback](docs/api/interfaces/options.md#log)
|
| 15 | + * Also supports vue2 (see dist/vue2-sfc-loader.js) |
15 | 16 | * You can [build your own version](#build-your-own-version) and easily customize browsers you need to support
|
16 | 17 |
|
17 | 18 |
|
@@ -85,7 +86,9 @@ Load .vue files dynamically at runtime from your html/js. No node.js environment
|
85 | 86 | [<!--update-min-gz-size--><!--/update-min-gz-size-->](#dist)
|
86 | 87 | [<!--update-min-size--><!--/update-min-size-->](#dist)
|
87 | 88 | [](https://snyk.io/vuln/npm:vue3-sfc-loader)
|
| 89 | + |
88 | 90 | [](https://github.com/browserslist/browserslist#query-composition)
|
| 91 | + |
89 | 92 | [](https://github.com/vuejs/vue-next/tree/master/packages/compiler-sfc)
|
90 | 93 | [](https://github.com/vuejs/vue-next/tree/master/packages/compiler-sfc)
|
91 | 94 |
|
@@ -124,10 +127,6 @@ Load .vue files dynamically at runtime from your html/js. No node.js environment
|
124 | 127 | [:speech_balloon: ask in Discussions tab](https://github.com/FranckFreiburger/vue3-sfc-loader/discussions?discussions_q=category%3AQ%26A)
|
125 | 128 |
|
126 | 129 |
|
127 |
| -## Previous version (for vue2) |
128 |
| - |
129 |
| - see [http-vue-loader](https://github.com/FranckFreiburger/http-vue-loader) <sub>:zzz:</sub> |
130 |
| - |
131 | 130 | #
|
132 | 131 |
|
133 | 132 | [](https://twitter.com/intent/tweet?text=Load%20.vue%20files%20dynamically%20from%20your%20html%2Fjs%20without%20any%20build%20step%20!&url=https://github.com/FranckFreiburger/vue3-sfc-loader&via=F_Freiburger&hashtags=vue,vue3,developers)
|
|
0 commit comments