sforkowany z mirror/soapbox
14 wiersze
228 B
TypeScript
14 wiersze
228 B
TypeScript
![]() |
import { env } from 'process';
|
||
|
|
||
|
import type { RuleSetRule } from 'webpack';
|
||
|
|
||
|
let rule: RuleSetRule = {};
|
||
|
|
||
|
if (env.NODE_ENV !== 'production') {
|
||
|
rule = {
|
||
|
test: /\.js$/,
|
||
|
loader: 'mark-loader',
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export default rule;
|