@rsbuild/webpack 0.0.28 → 1.0.0

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.
@@ -46,7 +46,7 @@ const getUseBuiltIns = (config) => {
46
46
  return polyfill;
47
47
  };
48
48
  const pluginBabel = () => ({
49
- name: "plugin-babel",
49
+ name: "rsbuild-webpack:babel",
50
50
  setup(api) {
51
51
  api.modifyBundlerChain(
52
52
  async (chain, { CHAIN_ID, target, isProd, isServer, isServiceWorker }) => {
@@ -34,7 +34,7 @@ module.exports = __toCommonJS(basic_exports);
34
34
  var import_path = __toESM(require("path"));
35
35
  var import_shared = require("@rsbuild/shared");
36
36
  const pluginBasic = () => ({
37
- name: "plugin-basic",
37
+ name: "rsbuild-webpack:basic",
38
38
  setup(api) {
39
39
  (0, import_shared.applyBasicPlugin)(api);
40
40
  api.modifyWebpackChain(async (chain, { env }) => {
@@ -33,7 +33,7 @@ __export(copy_exports, {
33
33
  module.exports = __toCommonJS(copy_exports);
34
34
  var import_fs = __toESM(require("fs"));
35
35
  const pluginCopy = () => ({
36
- name: "plugin-copy",
36
+ name: "rsbuild-webpack:copy",
37
37
  setup(api) {
38
38
  api.modifyWebpackChain(async (chain, { CHAIN_ID }) => {
39
39
  const config = api.getNormalizedConfig();
@@ -98,7 +98,7 @@ async function applyBaseCSSRule({
98
98
  }
99
99
  const pluginCss = () => {
100
100
  return {
101
- name: "plugin-css",
101
+ name: "rsbuild-webpack:css",
102
102
  setup(api) {
103
103
  api.modifyBundlerChain(async (chain, utils) => {
104
104
  const rule = chain.module.rule(utils.CHAIN_ID.RULE.CSS);
@@ -23,7 +23,7 @@ __export(hmr_exports, {
23
23
  module.exports = __toCommonJS(hmr_exports);
24
24
  var import_shared = require("@rsbuild/shared");
25
25
  const pluginHMR = () => ({
26
- name: "plugin-hmr",
26
+ name: "rsbuild-webpack:hmr",
27
27
  setup(api) {
28
28
  api.modifyWebpackChain((chain, utils) => {
29
29
  const config = api.getNormalizedConfig();
@@ -34,7 +34,7 @@ module.exports = __toCommonJS(less_exports);
34
34
  var import_shared = require("@rsbuild/shared");
35
35
  function pluginLess() {
36
36
  return {
37
- name: "plugin-less",
37
+ name: "rsbuild-webpack:less",
38
38
  setup(api) {
39
39
  api.modifyBundlerChain(async (chain, utils) => {
40
40
  const config = api.getNormalizedConfig();
@@ -43,7 +43,7 @@ async function applyJSMinimizer(chain, config) {
43
43
  ]).end();
44
44
  }
45
45
  const pluginMinimize = () => ({
46
- name: "plugin-minimize",
46
+ name: "rsbuild-webpack:minimize",
47
47
  setup(api) {
48
48
  api.modifyBundlerChain(async (chain, { isProd, CHAIN_ID: CHAIN_ID2 }) => {
49
49
  const config = api.getNormalizedConfig();
@@ -34,7 +34,7 @@ module.exports = __toCommonJS(output_exports);
34
34
  var import_path = require("path");
35
35
  var import_shared = require("@rsbuild/shared");
36
36
  const pluginOutput = () => ({
37
- name: "plugin-output",
37
+ name: "rsbuild-webpack:output",
38
38
  setup(api) {
39
39
  (0, import_shared.applyOutputPlugin)(api);
40
40
  api.modifyWebpackChain(async (chain, { isProd, target, CHAIN_ID }) => {
@@ -33,7 +33,7 @@ __export(progress_exports, {
33
33
  module.exports = __toCommonJS(progress_exports);
34
34
  var import_shared = require("@rsbuild/shared");
35
35
  const pluginProgress = () => ({
36
- name: "plugin-progress",
36
+ name: "rsbuild-webpack:progress",
37
37
  setup(api) {
38
38
  api.modifyWebpackChain(async (chain, { target, CHAIN_ID }) => {
39
39
  var _a;
@@ -34,7 +34,7 @@ module.exports = __toCommonJS(react_exports);
34
34
  var import_plugin_react = require("@rsbuild/plugin-react");
35
35
  var import_shared = require("@rsbuild/shared");
36
36
  const pluginReactWebpack = () => ({
37
- name: "plugin-react-webpack",
37
+ name: "rsbuild-webpack:react",
38
38
  setup(api) {
39
39
  api.modifyRsbuildConfig(async (config, { mergeRsbuildConfig }) => {
40
40
  const isNewJsx = await (0, import_plugin_react.isBeyondReact17)(api.context.rootPath);
@@ -61,7 +61,7 @@ const getMainFields = (chain, target) => {
61
61
  return ["module", "main"];
62
62
  };
63
63
  const pluginResolve = () => ({
64
- name: "plugin-resolve",
64
+ name: "rsbuild-webpack:resolve",
65
65
  setup(api) {
66
66
  (0, import_shared.applyResolvePlugin)(api);
67
67
  api.modifyWebpackChain(async (chain, { CHAIN_ID, target }) => {
@@ -34,7 +34,7 @@ module.exports = __toCommonJS(sass_exports);
34
34
  var import_shared = require("@rsbuild/shared");
35
35
  function pluginSass() {
36
36
  return {
37
- name: "plugin-sass",
37
+ name: "rsbuild-webpack:sass",
38
38
  setup(api) {
39
39
  api.onAfterCreateCompiler(({ compiler }) => {
40
40
  (0, import_shared.patchCompilerGlobalLocation)(compiler);
@@ -37,7 +37,7 @@ var import_web = require("@rsbuild/babel-preset/web");
37
37
  var import_babel = require("./babel");
38
38
  const pluginTsLoader = () => {
39
39
  return {
40
- name: "plugin-ts-loader",
40
+ name: "rsbuild-webpack:ts-loader",
41
41
  setup(api) {
42
42
  api.modifyWebpackChain(async (chain, { target, CHAIN_ID }) => {
43
43
  const config = api.getNormalizedConfig();
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import { Writable } from 'stream';
2
3
  export interface LogUpdate {
3
4
  clear: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/webpack",
3
- "version": "0.0.28",
3
+ "version": "1.0.0",
4
4
  "homepage": "https://rsbuild.dev",
5
5
  "repository": {
6
6
  "type": "git",
@@ -51,20 +51,20 @@
51
51
  "ts-loader": "9.4.4",
52
52
  "tsconfig-paths-webpack-plugin": "4.1.0",
53
53
  "webpack": "^5.89.0",
54
- "@rsbuild/babel-preset": "0.0.28",
55
- "@rsbuild/core": "0.0.28",
56
- "@rsbuild/plugin-react": "0.0.28",
57
- "@rsbuild/plugin-babel": "0.0.28",
58
- "@rsbuild/plugin-css-minimizer": "0.0.28",
59
- "@rsbuild/shared": "0.0.28"
54
+ "@rsbuild/babel-preset": "1.0.0",
55
+ "@rsbuild/core": "1.0.0",
56
+ "@rsbuild/plugin-react": "1.0.0",
57
+ "@rsbuild/plugin-css-minimizer": "1.0.0",
58
+ "@rsbuild/plugin-babel": "1.0.0",
59
+ "@rsbuild/shared": "1.0.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/lodash": "^4.14.200",
63
63
  "@types/node": "^16",
64
64
  "react": "^18.2.0",
65
65
  "react-dom": "^18.2.0",
66
- "typescript": "^5.2.2",
67
- "@rsbuild/test-helper": "0.0.28"
66
+ "typescript": "^5.3.0",
67
+ "@rsbuild/test-helper": "1.0.0"
68
68
  },
69
69
  "engines": {
70
70
  "node": ">=14.0.0"