@rsbuild/plugin-vue2 0.0.0-next-20231220091832 → 0.0.0-next-20240109045121

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 CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # Rsbuild
6
6
 
7
- Unleash the power of Rspack with the out-of-the-box build tool.
7
+ The Rspack-based build tool. It's fast, out-of-the-box and extensible.
8
8
 
9
9
  ## Documentation
10
10
 
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
@@ -6,7 +6,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
6
6
  throw Error('Dynamic require of "' + x + '" is not supported');
7
7
  });
8
8
 
9
- // ../../node_modules/.pnpm/@modern-js+module-tools@2.41.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
9
+ // ../../node_modules/.pnpm/@modern-js+module-tools@2.45.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
10
10
  import { fileURLToPath } from "url";
11
11
  import path from "path";
12
12
 
@@ -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.0.0-next-20231220091832",
3
+ "version": "0.0.0-next-20240109045121",
4
4
  "description": "Vue 2 plugin of Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -25,16 +25,16 @@
25
25
  "dependencies": {
26
26
  "vue-loader": "^15.11.1",
27
27
  "webpack": "^5.89.0",
28
- "@rsbuild/shared": "0.0.0-next-20231220091832"
28
+ "@rsbuild/shared": "0.0.0-next-20240109045121"
29
29
  },
30
30
  "devDependencies": {
31
31
  "typescript": "^5.3.0",
32
32
  "webpack": "^5.89.0",
33
- "@rsbuild/test-helper": "0.0.0-next-20231220091832",
34
- "@rsbuild/core": "0.0.0-next-20231220091832"
33
+ "@rsbuild/test-helper": "0.0.0-next-20240109045121",
34
+ "@rsbuild/core": "0.0.0-next-20240109045121"
35
35
  },
36
36
  "peerDependencies": {
37
- "@rsbuild/core": "0.0.0-next-20231220091832"
37
+ "@rsbuild/core": "0.0.0-next-20240109045121"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public",