react-cosmos-plugin-rspack 0.3.3 → 0.4.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.
@@ -498,7 +498,8 @@ function getOutput({ publicUrl }) {
498
498
  function getPlugins(cosmosConfig, baseRspackConfig, userRspack) {
499
499
  const existingPlugins = ignoreEmptyRspackPlugins(baseRspackConfig.plugins);
500
500
  const globalsPlugin = getGlobalsPlugin(cosmosConfig, userRspack, true);
501
- let plugins = [...existingPlugins, globalsPlugin];
501
+ const noEmitErrorsPlugin = new userRspack.NoEmitOnErrorsPlugin();
502
+ let plugins = [...existingPlugins, globalsPlugin, noEmitErrorsPlugin];
502
503
  const { hotReload } = createRspackCosmosConfig(cosmosConfig);
503
504
  if (hotReload && !hasPlugin(plugins, "HotModuleReplacementPlugin")) {
504
505
  const hmrPlugin = new userRspack.HotModuleReplacementPlugin();
@@ -633,7 +634,12 @@ function getOutput2(cosmosConfig) {
633
634
  function getPlugins2(cosmosConfig, baseRspackConfig, userRspack) {
634
635
  const existingPlugins = ignoreEmptyRspackPlugins(baseRspackConfig.plugins);
635
636
  const globalsPlugin = getGlobalsPlugin(cosmosConfig, userRspack, false);
636
- return ensureHtmlPlugin([...existingPlugins, globalsPlugin]);
637
+ const noEmitErrorsPlugin = new userRspack.NoEmitOnErrorsPlugin();
638
+ return ensureHtmlPlugin([
639
+ ...existingPlugins,
640
+ globalsPlugin,
641
+ noEmitErrorsPlugin
642
+ ]);
637
643
  }
638
644
  function getExperiments2(baseWebpackConfig) {
639
645
  return ensureRspackConfigTopLevelAwait(baseWebpackConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-cosmos-plugin-rspack",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "description": "rspack plugin for React Cosmos",
5
5
  "repository": "https://github.com/birchill/react-cosmos-plugin-rspack/",
6
6
  "author": "Birchill, Inc.",
@@ -13,17 +13,17 @@
13
13
  "type": "module",
14
14
  "dependencies": {
15
15
  "react-cosmos-dom": ">=6.0.0",
16
- "webpack-dev-middleware": "7.3.0",
16
+ "webpack-dev-middleware": "7.4.2",
17
17
  "webpack-hot-middleware": "2.26.1"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@release-it/conventional-changelog": "8.0.1",
21
- "@rspack/core": "1.0.0-beta.5",
21
+ "@rspack/core": "1.0.0-rc.0",
22
22
  "@types/node": "20.14.9",
23
23
  "@types/webpack-hot-middleware": "2.25.9",
24
- "esbuild": "0.23.0",
25
- "husky": "9.1.4",
26
- "knip": "5.27.2",
24
+ "esbuild": "0.23.1",
25
+ "husky": "9.1.5",
26
+ "knip": "5.27.4",
27
27
  "lint-staged": "15.2.9",
28
28
  "prettier": "3.3.3",
29
29
  "react-cosmos": "6.1.1",
@@ -48,7 +48,7 @@
48
48
  "prepare": "husky"
49
49
  },
50
50
  "peerDependencies": {
51
- "@rspack/core": ">=1.0.0-beta.0",
51
+ "@rspack/core": ">=1.0.0-rc.0",
52
52
  "react-cosmos": ">=6.0.0"
53
53
  },
54
54
  "lint-staged": {