@nx/rspack 21.0.4-beta.0 → 21.1.0-beta.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nx/rspack",
3
3
  "description": "The Nx Plugin for Rspack contains executors and generators that support building applications using Rspack.",
4
- "version": "21.0.4-beta.0",
4
+ "version": "21.1.0-beta.1",
5
5
  "type": "commonjs",
6
6
  "repository": {
7
7
  "type": "git",
@@ -24,10 +24,10 @@
24
24
  "generators": "./generators.json",
25
25
  "executors": "./executors.json",
26
26
  "dependencies": {
27
- "@nx/js": "21.0.4-beta.0",
28
- "@nx/devkit": "21.0.4-beta.0",
29
- "@nx/web": "21.0.4-beta.0",
30
- "@nx/module-federation": "21.0.4-beta.0",
27
+ "@nx/js": "21.1.0-beta.1",
28
+ "@nx/devkit": "21.1.0-beta.1",
29
+ "@nx/web": "21.1.0-beta.1",
30
+ "@nx/module-federation": "21.1.0-beta.1",
31
31
  "@phenomnomnominal/tsquery": "~5.0.1",
32
32
  "@rspack/core": "^1.3.8",
33
33
  "@rspack/dev-server": "^1.1.1",
@@ -57,8 +57,12 @@ async function rspackInitGenerator(tree, schema) {
57
57
  const devDependencies = {
58
58
  '@rspack/core': versions_1.rspackCoreVersion,
59
59
  '@rspack/cli': versions_1.rspackCoreVersion,
60
- '@rspack/plugin-react-refresh': versions_1.rspackPluginReactRefreshVersion,
61
- 'react-refresh': versions_1.reactRefreshVersion,
60
+ ...(!schema.framework || schema.framework === 'react'
61
+ ? {
62
+ '@rspack/plugin-react-refresh': versions_1.rspackPluginReactRefreshVersion,
63
+ 'react-refresh': versions_1.reactRefreshVersion,
64
+ }
65
+ : {}),
62
66
  };
63
67
  // eslint-disable-next-line @typescript-eslint/no-var-requires
64
68
  const version = require('../../../package.json').version;
@@ -1,4 +1,4 @@
1
- export type Framework = 'none' | 'react' | 'web' | 'nest';
1
+ export type Framework = 'none' | 'react' | 'web' | 'nest' | 'angular';
2
2
 
3
3
  export interface InitGeneratorSchema {
4
4
  addPlugin?: boolean;