@rsbuild/plugin-vue2 0.1.1 → 0.1.3

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 CHANGED
@@ -40,7 +40,6 @@ function pluginVue2(options = {}) {
40
40
  name: "rsbuild:vue2",
41
41
  setup(api) {
42
42
  api.modifyBundlerChain((chain, { CHAIN_ID }) => {
43
- var _a;
44
43
  chain.resolve.extensions.add(".vue");
45
44
  const vueLoaderOptions = (0, import_shared.deepmerge)(
46
45
  {
@@ -49,7 +48,7 @@ function pluginVue2(options = {}) {
49
48
  },
50
49
  experimentalInlineMatchResource: true
51
50
  },
52
- (_a = options.vueLoaderOptions) != null ? _a : {}
51
+ options.vueLoaderOptions ?? {}
53
52
  );
54
53
  chain.module.rule(CHAIN_ID.RULE.VUE).test(/\.vue$/).use(CHAIN_ID.USE.VUE).loader(require.resolve("vue-loader")).options(vueLoaderOptions);
55
54
  chain.plugin(CHAIN_ID.PLUGIN.VUE_LOADER_PLUGIN).use(import_vue_loader.VueLoaderPlugin);
package/dist/index.mjs CHANGED
@@ -10,7 +10,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
10
10
  import { fileURLToPath } from "url";
11
11
  import path from "path";
12
12
 
13
- // ../../scripts/require_shims.js
13
+ // ../../scripts/requireShims.js
14
14
  import { createRequire } from "module";
15
15
  global.require = createRequire(import.meta.url);
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-vue2",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Vue 2 plugin of Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -24,13 +24,13 @@
24
24
  "dependencies": {
25
25
  "vue-loader": "^15.11.1",
26
26
  "webpack": "^5.89.0",
27
- "@rsbuild/shared": "0.1.1"
27
+ "@rsbuild/shared": "0.1.3"
28
28
  },
29
29
  "devDependencies": {
30
30
  "typescript": "^5.3.0",
31
31
  "webpack": "^5.89.0",
32
- "@rsbuild/test-helper": "0.1.1",
33
- "@rsbuild/core": "0.1.1"
32
+ "@rsbuild/core": "0.1.3",
33
+ "@rsbuild/test-helper": "0.1.3"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@rsbuild/core": "0.x"