@rsbuild/plugin-vue2 0.0.0-nightly-20231018160828 → 0.0.0-nightly-20231020160758

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
@@ -1,5 +1,5 @@
1
- import type { BuilderPlugin } from '@rsbuild/core';
2
- import type { BuilderPluginAPI } from '@rsbuild/webpack';
1
+ import type { RsbuildPlugin } from '@rsbuild/core';
2
+ import type { RsbuildPluginAPI } from '@rsbuild/webpack';
3
3
  import type { VueLoaderOptions } from 'vue-loader';
4
4
  type VueJSXPresetOptions = {
5
5
  compositionAPI?: boolean | string;
@@ -12,5 +12,5 @@ export type PluginVueOptions = {
12
12
  vueJsxOptions?: VueJSXPresetOptions;
13
13
  vueLoaderOptions?: VueLoaderOptions;
14
14
  };
15
- export declare function builderPluginVue2(options?: PluginVueOptions): BuilderPlugin<BuilderPluginAPI>;
15
+ export declare function pluginVue2(options?: PluginVueOptions): RsbuildPlugin<RsbuildPluginAPI>;
16
16
  export {};
package/dist/index.js CHANGED
@@ -28,24 +28,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var src_exports = {};
30
30
  __export(src_exports, {
31
- builderPluginVue2: () => builderPluginVue2
31
+ pluginVue2: () => pluginVue2
32
32
  });
33
33
  module.exports = __toCommonJS(src_exports);
34
34
  var import_deepmerge = require("@rsbuild/shared/deepmerge");
35
35
  var import_vue_loader = require("vue-loader");
36
- function builderPluginVue2(options = {}) {
36
+ function pluginVue2(options = {}) {
37
37
  return {
38
- name: "builder-plugin-vue2",
38
+ name: "plugin-vue2",
39
39
  // Remove built-in react plugins.
40
40
  // These plugins should be moved to a separate package in the next major version.
41
- remove: [
42
- "builder-plugin-react",
43
- "builder-plugin-antd",
44
- "builder-plugin-arco"
45
- ],
41
+ remove: ["plugin-react", "plugin-antd", "plugin-arco"],
46
42
  async setup(api) {
47
- api.modifyBuilderConfig((config, { mergeBuilderConfig }) => {
48
- const builderConfig = {
43
+ api.modifyRsbuildConfig((config, { mergeRsbuildConfig }) => {
44
+ const rsbuildConfig = {
49
45
  output: {
50
46
  disableSvgr: true
51
47
  },
@@ -64,9 +60,9 @@ function builderPluginVue2(options = {}) {
64
60
  }
65
61
  };
66
62
  if (api.context.bundlerType === "rspack") {
67
- builderConfig.output.disableCssExtract = true;
63
+ rsbuildConfig.output.disableCssExtract = true;
68
64
  }
69
- return mergeBuilderConfig(config, builderConfig);
65
+ return mergeRsbuildConfig(config, rsbuildConfig);
70
66
  });
71
67
  api.modifyBundlerChain(async (chain, { CHAIN_ID }) => {
72
68
  var _a;
@@ -87,5 +83,5 @@ function builderPluginVue2(options = {}) {
87
83
  }
88
84
  // Annotate the CommonJS export names for ESM import in node:
89
85
  0 && (module.exports = {
90
- builderPluginVue2
86
+ pluginVue2
91
87
  });
package/package.json CHANGED
@@ -8,12 +8,12 @@
8
8
  "directory": "packages/plugin-vue"
9
9
  },
10
10
  "license": "MIT",
11
- "version": "0.0.0-nightly-20231018160828",
11
+ "version": "0.0.0-nightly-20231020160758",
12
12
  "types": "./dist/index.d.ts",
13
13
  "main": "./dist/index.js",
14
- "module": "./dist/index.js",
15
14
  "exports": {
16
15
  ".": {
16
+ "types": "./dist/index.d.ts",
17
17
  "default": "./dist/index.js"
18
18
  }
19
19
  },
@@ -23,25 +23,25 @@
23
23
  "dependencies": {
24
24
  "@vue/babel-preset-jsx": "^1.4.0",
25
25
  "vue-loader": "^15.10.1",
26
- "@rsbuild/shared": "0.0.0-nightly-20231018160828"
26
+ "@rsbuild/shared": "0.0.0-nightly-20231020160758"
27
27
  },
28
28
  "devDependencies": {
29
- "@babel/core": "^7.22.15",
29
+ "@babel/core": "^7.23.2",
30
30
  "typescript": "^5",
31
31
  "webpack": "^5.88.1",
32
- "@rsbuild/core": "0.0.0-nightly-20231018160828",
33
- "@rsbuild/webpack": "0.0.0-nightly-20231018160828"
32
+ "@rsbuild/core": "0.0.0-nightly-20231020160758",
33
+ "@rsbuild/webpack": "0.0.0-nightly-20231020160758",
34
+ "@rsbuild/test-helper": "0.0.0-nightly-20231020160758"
34
35
  },
35
36
  "peerDependencies": {
36
- "@rsbuild/core": "0.0.0-nightly-20231018160828",
37
- "@rsbuild/webpack": "0.0.0-nightly-20231018160828"
37
+ "@rsbuild/core": "0.0.0-nightly-20231020160758",
38
+ "@rsbuild/webpack": "0.0.0-nightly-20231020160758"
38
39
  },
39
40
  "peerDependenciesMeta": {
40
41
  "@rsbuild/webpack": {
41
42
  "optional": true
42
43
  }
43
44
  },
44
- "sideEffects": false,
45
45
  "publishConfig": {
46
46
  "registry": "https://registry.npmjs.org/",
47
47
  "access": "public",