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');
|
2023-04-11 19:14:16 +03:00
|
|
|
const withNodejsFallbacks = require('./tools/webpack/withNodejsFallbacks');
|
2023-02-28 22:41:18 +03:00
|
|
|
const withDevAssetLoader = require('./tools/webpack/withDevAssetLoader');
|
|
|
|
const withCircularDependencyPlugin = require('./tools/webpack/withCircularDependencyPlugin');
|
2023-03-21 20:02:10 +03:00
|
|
|
const withNxEnvCleanup = require('./tools/webpack/withNxEnvCleanup');
|
2023-02-28 22:41:18 +03:00
|
|
|
|
|
|
|
module.exports = composePlugins(
|
|
|
|
// Nx plugins for webpack.
|
|
|
|
withNx(),
|
|
|
|
// Replace this with withReact for fast refresh once we are able to use it
|
|
|
|
withWeb(),
|
2023-04-11 19:14:16 +03:00
|
|
|
withNodejsFallbacks(),
|
2023-02-28 22:41:18 +03:00
|
|
|
withConsoleTweaks(),
|
2023-03-21 20:02:10 +03:00
|
|
|
withDevAssetLoader(),
|
|
|
|
withNxEnvCleanup()
|
2023-02-28 22:41:18 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
withCircularDependencyPlugin({
|
|
|
|
shouldLogEveryCircularDependency: false,
|
|
|
|
})
|
|
|
|
|
|
|
|
*/
|
|
|
|
);
|