1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/config/webpack/modules/hmr.js
2022-03-15 11:13:03 +01:00

15 lines
304 B
JavaScript

const isDevelopment = process.env.NODE_ENV !== 'production';
module.exports = {
test: /\.[jt]sx?$/,
exclude: /node_modules/,
use: [
{
loader: 'babel-loader',
options: {
plugins: [isDevelopment && require.resolve('react-refresh/babel')].filter(Boolean)
}
}
]
};