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
  • Loading branch information
Coly010 committed Mar 8, 2024
1 parent 4a642c5 commit 8559993
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react/src/generators/application/application.ts
Expand Up @@ -200,7 +200,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 @@ -295,8 +295,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 8559993

Please sign in to comment.