@empjs/plugin-vue2 3.0.0-beta.28 → 3.0.0-rc.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/index.js +7 -7
- package/package.json +5 -13
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# @empjs/plugin-vue2
|
|
2
|
+
## 安装
|
|
3
|
+
```
|
|
4
|
+
pnpm add @empjs/plugin-vue2 -D
|
|
5
|
+
```
|
|
6
|
+
## 使用
|
|
7
|
+
```js
|
|
8
|
+
import pluginVue from '@empjs/plugin-vue2'
|
|
9
|
+
import {defineConfig} from '@empjs/cli'
|
|
10
|
+
export default defineConfig(({mode, env}) => {
|
|
11
|
+
return {
|
|
12
|
+
plugins: [pluginVue()],
|
|
13
|
+
}
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
```
|
package/dist/index.js
CHANGED
|
@@ -5,13 +5,13 @@ export default () => {
|
|
|
5
5
|
name: '@empjs/plugin-vue2',
|
|
6
6
|
async rsConfig(store) {
|
|
7
7
|
const { importResolve, chain } = store;
|
|
8
|
-
store.merge({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
})
|
|
8
|
+
// store.merge({
|
|
9
|
+
// experiments: {
|
|
10
|
+
// rspackFuture: {
|
|
11
|
+
// newTreeshaking: true, // 该功能启用了与 webpack 相同的新摇树优化实现,可以生成更高效和更小的代码。
|
|
12
|
+
// },
|
|
13
|
+
// },
|
|
14
|
+
// })
|
|
15
15
|
//
|
|
16
16
|
chain.resolve.alias.set('vue$', 'vue/dist/vue.runtime.esm.js');
|
|
17
17
|
chain.plugin('vue-loader-plugin').use(VueLoaderPlugin, []);
|
package/package.json
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empjs/plugin-vue2",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-rc.22",
|
|
4
4
|
"description": "emp vue2 plugin",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"files": [
|
|
8
|
-
|
|
9
|
-
],
|
|
10
|
-
"maintainers": [
|
|
11
|
-
"xuhongbin",
|
|
12
|
-
"ckken"
|
|
13
|
-
],
|
|
7
|
+
"files": ["dist"],
|
|
8
|
+
"maintainers": ["xuhongbin", "ckken"],
|
|
14
9
|
"repository": {
|
|
15
10
|
"type": "git",
|
|
16
11
|
"url": "git+https://github.com/empjs/emp.git",
|
|
@@ -19,10 +14,7 @@
|
|
|
19
14
|
"publishConfig": {
|
|
20
15
|
"access": "public"
|
|
21
16
|
},
|
|
22
|
-
"keywords": [
|
|
23
|
-
"vue",
|
|
24
|
-
"vue2"
|
|
25
|
-
],
|
|
17
|
+
"keywords": ["vue", "vue2"],
|
|
26
18
|
"main": "dist/index.js",
|
|
27
19
|
"types": "dist/index.d.ts",
|
|
28
20
|
"exports": {
|
|
@@ -51,4 +43,4 @@
|
|
|
51
43
|
"vue-loader": "^15.11.0",
|
|
52
44
|
"vue-svg-inline-loader": "^2.1.5"
|
|
53
45
|
}
|
|
54
|
-
}
|
|
46
|
+
}
|