Skip to content

Commit

Permalink
Merge pull request #1448 from embroider-build/customise-clean
Browse files Browse the repository at this point in the history
Add the ability to customise rollup-plugin-clean's config
  • Loading branch information
mansona authored Aug 2, 2023
2 parents 349e7fe + e62b869 commit a3ff5ed
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
Expand Up @@ -2,7 +2,7 @@ import { default as hbs } from './rollup-hbs-plugin';
import { default as gjs } from './rollup-gjs-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 @@ -52,8 +52,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 a3ff5ed

Please sign in to comment.