Skip to content

Commit f5e8f88

Browse files
authored
perf(fmt): reduce formatter bundle size (#168)
1 parent 32c3594 commit f5e8f88

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/rstack/rslib.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from '@rslib/core';
22
import pkgJson from './package.json' with { type: 'json' };
33

4-
const fullyMinifiedChunks = /staged\.js$/;
4+
const fullyMinifiedChunks = /(?:fmt(?:Plugins)?|sortPackageJsonPlugin|staged)\.js$/;
55

66
export default defineConfig({
77
lib: [{ syntax: 'es2023', dts: true }],
@@ -32,8 +32,7 @@ export default defineConfig({
3232
css: false,
3333
jsOptions: [
3434
{
35-
// Fully minify the staged chunk, including bundled lint-staged code,
36-
// to reduce package size.
35+
// Fully minify formatter and staged command bundles to reduce package size.
3736
include: fullyMinifiedChunks,
3837
},
3938
{

0 commit comments

Comments
 (0)