graphql-engine/frontend/custom-webpack.config.js
Nicolas Beaussart f3951e1680 frontend: update nx to latest 15
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8079
Co-authored-by: Stefano Magni <173663+NoriSte@users.noreply.github.com>
GitOrigin-RevId: 46b1ed03ab225fccc9d769203d1af11a6bcdb63e
2023-02-28 19:42:51 +00:00

25 lines
823 B
JavaScript

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');
const util = require('util');
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,
})
*/
);