[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add react alias #530

Merged
merged 2 commits into from
Mar 1, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore: add react alias
  • Loading branch information
Aaaaash committed Mar 1, 2022
commit 9d8f9d83fa0e3e404ae89e04beba3d5c794ba9f8
4 changes: 4 additions & 0 deletions tools/dev-tool/src/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ threadLoader.warmup({}, ['ts-loader']);

const utils = require('./utils');

const reactPath = path.resolve(path.join(__dirname, '../../../node_modules/react'));
Aaaaash marked this conversation as resolved.
Show resolved Hide resolved
const tsConfigPath = path.join(__dirname, '../../../tsconfig.json');
const HOST = process.env.HOST || '127.0.0.1';
const PORT = process.env.IDE_FRONT_PORT || 8080;
Expand Down Expand Up @@ -47,6 +48,9 @@ exports.createWebpackConfig = function (dir, entry, extraConfig) {
configFile: tsConfigPath,
}),
],
alias: {
react: reactPath,
},
},
bail: true,
mode: 'development',
Expand Down