bigbuffet-rw/webpack/rules/mark.ts
2022-10-14 15:43:32 -05:00

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;