Skip to content

Commit

Permalink
fix(react): pass correct argument to rspack configuration generator (#…
Browse files Browse the repository at this point in the history
…22241)

(cherry picked from commit 8559993)
  • Loading branch information
Coly010 authored and FrozenPandaz committed Mar 8, 2024
1 parent af8a132 commit 6f22121
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react/src/generators/application/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export async function applicationGeneratorInternal(
tsConfig: joinPathFragments(options.appProjectRoot, 'tsconfig.app.json'),
target: 'web',
newProject: true,
uiFramework: 'react',
framework: 'react',
});
tasks.push(rspackTask);
}
Expand Down Expand Up @@ -287,8 +287,8 @@ export async function applicationGeneratorInternal(
host.write(
joinPathFragments(options.appProjectRoot, 'rspack.config.js'),
stripIndents`
const { composePlugins, withNx, withWeb } = require('@nx/rspack');
module.exports = composePlugins(withNx(), withWeb(), (config) => {
const { composePlugins, withNx, withReact } = require('@nx/rspack');
module.exports = composePlugins(withNx(), withReact(), (config) => {
config.module.rules.push({
test: /\\.[jt]sx$/i,
use: [
Expand Down

0 comments on commit 6f22121

Please sign in to comment.