@rsbuild/plugin-vue2 0.2.13 → 0.2.14
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/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -78,6 +78,9 @@ function pluginVue2(options = {}) {
|
|
|
78
78
|
setup(api) {
|
|
79
79
|
api.modifyBundlerChain((chain, { CHAIN_ID }) => {
|
|
80
80
|
chain.resolve.extensions.add(".vue");
|
|
81
|
+
if (!chain.resolve.alias.get("vue$")) {
|
|
82
|
+
chain.resolve.alias.set("vue$", "vue/dist/vue.runtime.esm.js");
|
|
83
|
+
}
|
|
81
84
|
const vueLoaderOptions = (0, import_shared2.deepmerge)(
|
|
82
85
|
{
|
|
83
86
|
compilerOptions: {
|
package/dist/index.mjs
CHANGED
|
@@ -63,6 +63,9 @@ function pluginVue2(options = {}) {
|
|
|
63
63
|
setup(api) {
|
|
64
64
|
api.modifyBundlerChain((chain, { CHAIN_ID }) => {
|
|
65
65
|
chain.resolve.extensions.add(".vue");
|
|
66
|
+
if (!chain.resolve.alias.get("vue$")) {
|
|
67
|
+
chain.resolve.alias.set("vue$", "vue/dist/vue.runtime.esm.js");
|
|
68
|
+
}
|
|
66
69
|
const vueLoaderOptions = deepmerge(
|
|
67
70
|
{
|
|
68
71
|
compilerOptions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-vue2",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"description": "Vue 2 plugin of Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"vue-loader": "^15.11.1",
|
|
27
27
|
"webpack": "^5.89.0",
|
|
28
|
-
"@rsbuild/shared": "0.2.
|
|
28
|
+
"@rsbuild/shared": "0.2.14"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"typescript": "^5.3.0",
|
|
32
32
|
"webpack": "^5.89.0",
|
|
33
|
-
"@rsbuild/core": "0.2.
|
|
34
|
-
"@rsbuild/test-helper": "0.2.
|
|
33
|
+
"@rsbuild/core": "0.2.14",
|
|
34
|
+
"@rsbuild/test-helper": "0.2.14"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@rsbuild/core": "0.x"
|