Skip to content

Commit dfa90dc

Browse files
Tim Lindvallchriseppstein
authored andcommitted
refactor: Clean up config merging per feedback.
Co-authored-by: Chris Eppstein <[email protected]>
1 parent 04a9da2 commit dfa90dc

File tree

1 file changed

+5
-10
lines changed
  • packages/@css-blocks/ember-app/src

1 file changed

+5
-10
lines changed

Diff for: packages/@css-blocks/ember-app/src/index.ts

+5-10
Original file line numberDiff line numberDiff line change
@@ -203,16 +203,11 @@ const EMBER_ADDON: AddonImplementation<CSSBlocksApplicationAddon> = {
203203
}
204204

205205
// Merge default concat options with the options provided by the app.
206-
let concatOptions: BroccoliConcatOptions;
207-
if (env.config.broccoliConcat) {
208-
concatOptions = Object.assign(
209-
{},
210-
buildDefaultBroccoliConcatOptions(env),
211-
env.config.broccoliConcat,
212-
);
213-
} else {
214-
concatOptions = buildDefaultBroccoliConcatOptions(env);
215-
}
206+
let concatOptions: BroccoliConcatOptions = Object.assign(
207+
{},
208+
buildDefaultBroccoliConcatOptions(env),
209+
env.config.broccoliConcat || {},
210+
);
216211

217212
// Create the concatenated file...
218213
const concatTree = broccoliConcat(

0 commit comments

Comments
 (0)