Patch Changes
-
Enable fine-grained control for
output.inlineScripts
(#883)type InlineChunkTestFunction = (params: { size: number name: string }) => boolean type InlineChunkTest = RegExp | InlineChunkTestFunction type InlineChunkConfig = | boolean | InlineChunkTest | { enable?: boolean | 'auto', test: InlineChunkTest }
import { defineConfig } from '@lynx-js/rspeedy' export default defineConfig({ output: { inlineScripts: ({ name, size }) => { return name.includes('foo') && size < 1000 }, }, })
-
docs: remove chunks: 'all' in comments (#1168)