@rsbuild/plugin-vue2 0.3.3 → 0.3.4

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.d.ts CHANGED
@@ -11,4 +11,4 @@ type PluginVueOptions = {
11
11
  };
12
12
  declare function pluginVue2(options?: PluginVueOptions): RsbuildPlugin;
13
13
 
14
- export { PluginVueOptions, SplitVueChunkOptions, pluginVue2 };
14
+ export { type PluginVueOptions, type SplitVueChunkOptions, pluginVue2 };
package/dist/index.mjs CHANGED
@@ -1,3 +1,6 @@
1
+ import { createRequire } from 'module';
2
+ var require = createRequire(import.meta['url']);
3
+
1
4
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
5
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
6
  }) : x)(function(x) {
@@ -6,14 +9,10 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
6
9
  throw Error('Dynamic require of "' + x + '" is not supported');
7
10
  });
8
11
 
9
- // ../../node_modules/.pnpm/@modern-js+module-tools@2.45.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
12
+ // ../../node_modules/.pnpm/@modern-js+module-tools@2.46.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
10
13
  import { fileURLToPath } from "url";
11
14
  import path from "path";
12
15
 
13
- // ../../scripts/requireShims.js
14
- import { createRequire } from "module";
15
- global.require = createRequire(import.meta.url);
16
-
17
16
  // src/index.ts
18
17
  import { deepmerge } from "@rsbuild/shared";
19
18
  import { VueLoaderPlugin } from "vue-loader";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-vue2",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
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.3.3"
28
+ "@rsbuild/shared": "0.3.4"
29
29
  },
30
30
  "devDependencies": {
31
31
  "typescript": "^5.3.0",
32
32
  "webpack": "^5.89.0",
33
- "@rsbuild/core": "0.3.3",
34
- "@scripts/test-helper": "1.0.0"
33
+ "@rsbuild/core": "0.3.4",
34
+ "@scripts/test-helper": "0.3.4"
35
35
  },
36
36
  "peerDependencies": {
37
- "@rsbuild/core": "0.x"
37
+ "@rsbuild/core": "^0.3.4"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public",