mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
83bd95f332
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8412 GitOrigin-RevId: 7e14fd7b926db0d944a915aa8b376ac2e5c5efce
27 lines
915 B
JavaScript
27 lines
915 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');
|
|
const withNxEnvCleanup = require('./tools/webpack/withNxEnvCleanup');
|
|
|
|
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(),
|
|
withNxEnvCleanup()
|
|
|
|
/*
|
|
withCircularDependencyPlugin({
|
|
shouldLogEveryCircularDependency: false,
|
|
})
|
|
|
|
*/
|
|
);
|