2023-02-28 22:41:18 +03:00
|
|
|
const { composePlugins, withNx, withWeb } = require('@nrwl/webpack');
|
|
|
|
// We can't' have react fast refresh because of circular dependancies
|
|
|
|
// That is also why the current fast refresh is flacky
|
|
|
|
//const { withReact } = require('@nrwl/react');
|
2022-09-30 11:33:34 +03:00
|
|
|
const util = require('util');
|
2023-02-28 22:41:18 +03:00
|
|
|
const withConsoleTweaks = require('./tools/webpack/withConsoleTweaks');
|
|
|
|
const withDevAssetLoader = require('./tools/webpack/withDevAssetLoader');
|
|
|
|
const withCircularDependencyPlugin = require('./tools/webpack/withCircularDependencyPlugin');
|
|
|
|
|
|
|
|
module.exports = composePlugins(
|
|
|
|
// Nx plugins for webpack.
|
|
|
|
withNx(),
|
|
|
|
// Replace this with withReact for fast refresh once we are able to use it
|
|
|
|
withWeb(),
|
|
|
|
withConsoleTweaks(),
|
|
|
|
withDevAssetLoader()
|
|
|
|
|
|
|
|
/*
|
|
|
|
withCircularDependencyPlugin({
|
|
|
|
shouldLogEveryCircularDependency: false,
|
|
|
|
})
|
|
|
|
|
|
|
|
*/
|
|
|
|
);
|