File tree Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 1
- # SFC To ES Modules
1
+ # Vue SFC To ES Modules
2
2
3
3
> Compile Vue SFC File to ES Modules.
4
4
5
- ## Project setup
5
+ ## ✨ Features
6
+
7
+ * 💪 Fully Typed
8
+ * 🌳 TreeShakable & SideEffects Free, Check out [ Bundle Phobia] ( https://bundlephobia.com/result?p=sfc2esm )
9
+ * 📁 Virtual File System (Support Compile ` .vue/.js ` File).
10
+ * 👬 Friendly Error Tips
11
+
12
+ ## 💡 Inspiration
13
+
14
+ This project is heavily inspired by [ Vue Sfc Playground] ( https://github.com/vuejs/vue-next/tree/master/packages/sfc-playground )
15
+
16
+
17
+ ## 📦 Installation
18
+
19
+ ``` bash
20
+ yarn add sfc2esm -S
21
+ or
22
+ npm i sfc2esm -S
23
+ ```
24
+
25
+ ## 💻 Development
6
26
```
7
27
yarn install
8
28
```
@@ -17,6 +37,6 @@ yarn dev
17
37
yarn build
18
38
```
19
39
20
- ## License
40
+ ## 📄 License
21
41
22
42
MIT [ @xiaoluoboding ] ( https://github.com/xiaoluoboding )
Original file line number Diff line number Diff line change 1
1
import { compileModules } from '../src/index'
2
2
3
3
( async function ( ) {
4
- const modules = await compileModules ( )
4
+ const modules = await compileModules ( 'App.vue' )
5
5
console . log ( `successfully compiled ${ modules . length } modules.` )
6
6
console . log ( modules )
7
7
} ) ( )
You can’t perform that action at this time.
0 commit comments