Skip to content

Commit

Permalink
fix: fix missing webpack config for react
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio committed Nov 22, 2020
1 parent 657068f commit 59b3557
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/frameworks/react/src/webpack.config.ts
Expand Up @@ -8,6 +8,6 @@ const ESBUILD_LOADER_TSX = {
},
};

export function webpackPreactConfig(env: any, argv: any): Object {
export function webpackReactConfig(env: any, argv: any): Object {
return webpackConfig(env, argv, [ESBUILD_LOADER_TSX]);
}
4 changes: 4 additions & 0 deletions packages/cli/frameworks/react/webpack.config.js
@@ -0,0 +1,4 @@
module.exports = (env, argv) => {
const { webpackReactConfig } = require('./lib/webpack.config');
return webpackReactConfig(env, argv);
};

0 comments on commit 59b3557

Please sign in to comment.