graphql-engine/frontend/custom-webpack.config.js
Nicolas Beaussart eaf6385a28 frontend: remove vendor source maps
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8715
GitOrigin-RevId: 10a0666e2676d9fdc9a5bc5a9120021d0d94095b
2023-04-11 16:15:54 +00:00

29 lines
1016 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 withNodejsFallbacks = require('./tools/webpack/withNodejsFallbacks');
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(),
withNodejsFallbacks(),
withConsoleTweaks(),
withDevAssetLoader(),
withNxEnvCleanup()
/*
withCircularDependencyPlugin({
shouldLogEveryCircularDependency: false,
})
*/
);