@rsbuild/plugin-vue 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
@@ -51,7 +51,6 @@ function pluginVue(options = {}) {
51
51
  });
52
52
  });
53
53
  api.modifyBundlerChain(async (chain, { CHAIN_ID }) => {
54
- var _a;
55
54
  chain.resolve.extensions.add(".vue");
56
55
  const vueLoaderOptions = (0, import_shared.deepmerge)(
57
56
  {
@@ -60,7 +59,7 @@ function pluginVue(options = {}) {
60
59
  },
61
60
  experimentalInlineMatchResource: true
62
61
  },
63
- (_a = options.vueLoaderOptions) != null ? _a : {}
62
+ options.vueLoaderOptions ?? {}
64
63
  );
65
64
  chain.module.rule(CHAIN_ID.RULE.VUE).test(/\.vue$/).use(CHAIN_ID.USE.VUE).loader(require.resolve("vue-loader")).options(vueLoaderOptions);
66
65
  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-vue",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Vue 3 plugin of Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -24,13 +24,13 @@
24
24
  "dependencies": {
25
25
  "vue-loader": "^17.2.2",
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/core": "0.1.1",
33
- "@rsbuild/test-helper": "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"