Skip to content

Commit 9920678

Browse files
wip(docs): speaks about Vue2
1 parent d4ab194 commit 9920678

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
# vue3-sfc-loader
22

3-
Vue3 Single File Component loader.
3+
Vue3/Vue2 Single File Component loader.
44
Load .vue files dynamically at runtime from your html/js. No node.js environment, no (webpack) build step needed.
55

66

77
## Key Features
88

9-
* Only requires [Vue3 runtime](https://unpkg.com/vue@next/dist/vue.runtime.global.prod.js)
9+
* Only requires Vue runtime-only build
1010
* Focuses on component compilation. Network, styles injection and cache are up to you (see [example below](#example))
1111
* Embedded ES6 modules support ( including `import()` )
1212
* SFC Custom Blocks support
1313
* 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
1414
* 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)
1516
* You can [build your own version](#build-your-own-version) and easily customize browsers you need to support
1617

1718

@@ -85,7 +86,9 @@ Load .vue files dynamically at runtime from your html/js. No node.js environment
8586
[<!--update-min-gz-size-->![bundle minified+gzip size](https://img.shields.io/badge/min%2Bgz-362kB-blue)<!--/update-min-gz-size-->](#dist)
8687
[<!--update-min-size-->![bundle minified size](https://img.shields.io/badge/min-1398kB-blue)<!--/update-min-size-->](#dist)
8788
[![Snyk Vulnerabilities for vue3-sfc-loader](https://img.shields.io/snyk/vulnerabilities/github/FranckFreiburger/vue3-sfc-loader)](https://snyk.io/vuln/npm:vue3-sfc-loader)
89+
8890
[![browser support](https://img.shields.io/github/package-json/browserslist/FranckFreiburger/vue3-sfc-loader)](https://github.com/browserslist/browserslist#query-composition)
91+
8992
[![Vue3 compiler-sfc dependency version](https://img.shields.io/github/package-json/dependency-version/FranckFreiburger/vue3-sfc-loader/@vue/compiler-sfc?label=embeds%20Vue3%20%40vue%2Fcompiler-sfc)](https://github.com/vuejs/vue-next/tree/master/packages/compiler-sfc)
9093
[![Vue2 vue-template-compiler dependency version](https://img.shields.io/github/package-json/dependency-version/FranckFreiburger/vue3-sfc-loader/vue-template-compiler?label=embeds%20Vue2%20vue-template-compiler)](https://github.com/vuejs/vue-next/tree/master/packages/compiler-sfc)
9194

@@ -124,10 +127,6 @@ Load .vue files dynamically at runtime from your html/js. No node.js environment
124127
[:speech_balloon: ask in Discussions tab](https://github.com/FranckFreiburger/vue3-sfc-loader/discussions?discussions_q=category%3AQ%26A)
125128

126129

127-
## Previous version (for vue2)
128-
129-
see [http-vue-loader](https://github.com/FranckFreiburger/http-vue-loader) <sub>:zzz:</sub>
130-
131130
#
132131

133132
[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](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

Comments
 (0)