nx/packages/react/plugins/nx-react-webpack-plugin/nx-react-webpack-plugin.ts

11 lines
290 B
TypeScript

import { Compiler } from 'webpack';
import { applyReactConfig } from './lib/apply-react-config';
export class NxReactWebpackPlugin {
constructor(private options: { svgr?: boolean } = {}) {}
apply(compiler: Compiler): void {
applyReactConfig(this.options, compiler.options);
}
}