14 lines
No EOL
228 B
TypeScript
14 lines
No EOL
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; |