@rsbuild/plugin-vue2 1.1.0 → 1.1.1

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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const __rslib_import_meta_url__ = /*#__PURE__*/ function() {
3
- return 'undefined' == typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
3
+ return "u" < typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
4
4
  }();
5
5
  var __webpack_require__ = {};
6
6
  (()=>{
@@ -16,7 +16,7 @@ var __webpack_require__ = {};
16
16
  })();
17
17
  (()=>{
18
18
  __webpack_require__.r = (exports1)=>{
19
- if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
19
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
20
20
  value: 'Module'
21
21
  });
22
22
  Object.defineProperty(exports1, '__esModule', {
@@ -71,7 +71,7 @@ class VueLoader15PitchFixPlugin {
71
71
  const isPlainObject = (obj)=>null !== obj && 'object' == typeof obj && '[object Object]' === Object.prototype.toString.call(obj);
72
72
  const isDefaultPreset = (config)=>{
73
73
  const { performance, splitChunks } = config;
74
- if (performance.chunkSplit && 'object' == typeof splitChunks && 0 === Object.keys(splitChunks).length) return performance.chunkSplit?.strategy === 'split-by-experience';
74
+ if (performance.chunkSplit) return performance.chunkSplit?.strategy === 'split-by-experience';
75
75
  if ('object' == typeof splitChunks) return !splitChunks.preset || 'default' === splitChunks.preset;
76
76
  return false;
77
77
  };
@@ -162,10 +162,10 @@ function applyResolveConfig(vueRule, jsRule) {
162
162
  }
163
163
  exports.PLUGIN_VUE2_NAME = __webpack_exports__.PLUGIN_VUE2_NAME;
164
164
  exports.pluginVue2 = __webpack_exports__.pluginVue2;
165
- for(var __webpack_i__ in __webpack_exports__)if (-1 === [
165
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
166
166
  "PLUGIN_VUE2_NAME",
167
167
  "pluginVue2"
168
- ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
168
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
169
169
  Object.defineProperty(exports, '__esModule', {
170
170
  value: true
171
171
  });
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ class VueLoader15PitchFixPlugin {
39
39
  const isPlainObject = (obj)=>null !== obj && 'object' == typeof obj && '[object Object]' === Object.prototype.toString.call(obj);
40
40
  const isDefaultPreset = (config)=>{
41
41
  const { performance, splitChunks } = config;
42
- if (performance.chunkSplit && 'object' == typeof splitChunks && 0 === Object.keys(splitChunks).length) return performance.chunkSplit?.strategy === 'split-by-experience';
42
+ if (performance.chunkSplit) return performance.chunkSplit?.strategy === 'split-by-experience';
43
43
  if ('object' == typeof splitChunks) return !splitChunks.preset || 'default' === splitChunks.preset;
44
44
  return false;
45
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-vue2",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "repository": "https://github.com/rstackjs/rsbuild-plugin-vue2",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -36,17 +36,17 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "vue-loader": "^15.11.1",
39
- "webpack": "^5.103.0"
39
+ "webpack": "^5.104.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@biomejs/biome": "^1.9.4",
43
- "@playwright/test": "^1.57.0",
43
+ "@playwright/test": "^1.58.1",
44
44
  "@rsbuild/core": "2.0.0-beta.0",
45
45
  "@rsbuild/plugin-less": "^1.6.0",
46
- "@rslib/core": "^0.18.2",
47
- "@types/node": "^22.19.1",
46
+ "@rslib/core": "^0.19.4",
47
+ "@types/node": "^24.10.9",
48
48
  "nano-staged": "^0.9.0",
49
- "playwright": "^1.57.0",
49
+ "playwright": "^1.58.1",
50
50
  "simple-git-hooks": "^2.13.1",
51
51
  "typescript": "^5.9.3",
52
52
  "vue": "^2.7.16"
@@ -59,7 +59,7 @@
59
59
  "optional": true
60
60
  }
61
61
  },
62
- "packageManager": "pnpm@10.24.0",
62
+ "packageManager": "pnpm@10.28.2",
63
63
  "publishConfig": {
64
64
  "access": "public",
65
65
  "registry": "https://registry.npmjs.org/"