mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
15 lines
304 B
JavaScript
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)
|
|
}
|
|
}
|
|
]
|
|
};
|