File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import type {
3535 ModuleFormat ,
3636 ModuleTypes ,
3737 OutputOptions ,
38+ TreeshakingOptions ,
3839} from 'rolldown'
3940import type { Options as DtsOptions } from 'rolldown-plugin-dts'
4041import type { Options as UnusedOptions } from 'unplugin-unused'
@@ -60,6 +61,7 @@ export type {
6061 PublintOptions ,
6162 ReportOptions ,
6263 RolldownContext ,
64+ TreeshakingOptions ,
6365 TsdownChunks ,
6466 TsdownHooks ,
6567 UnusedOptions ,
@@ -177,9 +179,11 @@ export interface Options {
177179 shims ?: boolean
178180
179181 /**
182+ * Configure tree shaking options.
183+ * @see {@link https://rolldown.rs/options/treeshake } for more details.
180184 * @default true
181185 */
182- treeshake ?: boolean
186+ treeshake ?: boolean | TreeshakingOptions
183187
184188 /**
185189 * Sets how input files are processed.
You can’t perform that action at this time.
0 commit comments