mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +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)
|
|
}
|
|
}
|
|
]
|
|
};
|