Skip to content

Commit

Permalink
add ability to customise rollup-plugin-delete conf
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed May 24, 2023
1 parent 615818f commit 262fd97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/addon-dev/src/rollup.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { default as hbs } from './rollup-hbs-plugin';
import { default as publicEntrypoints } from './rollup-public-entrypoints';
import { default as appReexports } from './rollup-app-reexports';
import { default as clean } from 'rollup-plugin-delete';
import { default as clean, Options as DelOptions } from 'rollup-plugin-delete';
import { default as keepAssets } from './rollup-keep-assets';
import { default as dependencies } from './rollup-addon-dependencies';
import { default as publicAssets } from './rollup-public-assets';
Expand Down Expand Up @@ -47,8 +47,8 @@ export class Addon {

// By default rollup does not clear the output directory between builds. This
// does that.
clean() {
return clean({ targets: `${this.#destDir}/*` });
clean(options: DelOptions) {
return clean({ targets: `${this.#destDir}/*`, ...options });
}

// V2 Addons are allowed to contain imports of .css files. This tells rollup
Expand Down

0 comments on commit 262fd97

Please sign in to comment.