mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-24 20:17:50 +02:00
perf(bundler): fine-tuning of Webpack/Rspack optimizations (#11176)
This commit is contained in:
parent
dee76f8042
commit
2371ca7b74
8 changed files with 174 additions and 106 deletions
|
@ -11,16 +11,6 @@ import browserslist from 'browserslist';
|
|||
import {minify as swcHtmlMinifier} from '@swc/html';
|
||||
import type {JsMinifyOptions, Options as SwcOptions} from '@swc/core';
|
||||
|
||||
// See https://rspack.dev/contribute/development/profiling
|
||||
// File can be opened with https://ui.perfetto.dev/
|
||||
if (process.env.DOCUSAURUS_RSPACK_TRACE) {
|
||||
Rspack.experiments.globalTrace.register(
|
||||
'trace',
|
||||
'chrome',
|
||||
'./rspack-tracing.json',
|
||||
);
|
||||
}
|
||||
|
||||
export const swcLoader = require.resolve('swc-loader');
|
||||
|
||||
export const getSwcLoaderOptions = ({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue