| 1234567891011121314151617181920 |
- const { composePlugins, withNx } = require('@nx/webpack');
- const { withReact } = require('@nx/react');
- // Nx plugins for webpack.
- module.exports = composePlugins(
- withNx({
- // Skip TypeScript type checking during build to avoid UI library type errors
- skipTypeChecking: true,
- }),
- withReact({
- // Uncomment this line if you don't want to use SVGR
- // See: https://react-svgr.com/
- // svgr: false
- }),
- (config) => {
- // Update the webpack config as needed here.
- // e.g. `config.plugins.push(new MyPlugin())`
- return config;
- }
- );
|