Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/rstack/rslib.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from '@rslib/core';
import pkgJson from './package.json' with { type: 'json' };

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

export default defineConfig({
lib: [{ syntax: 'es2023', dts: true }],
Expand Down Expand Up @@ -32,8 +32,7 @@ export default defineConfig({
css: false,
jsOptions: [
{
// Fully minify the staged chunk, including bundled lint-staged code,
// to reduce package size.
// Fully minify formatter and staged command bundles to reduce package size.
include: fullyMinifiedChunks,
},
{
Expand Down