Skip to content

Commit

Permalink
feat: make @linaria/shaker optional (#819)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuma1989 authored Aug 14, 2021
1 parent 26cc3d4 commit 2a55b03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel/src/utils/loadOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const explorer = cosmiconfig('linaria');
export default function loadOptions(
overrides: Partial<PluginOptions> = {}
): Partial<StrictOptions> {
const { configFile, ignore, ...rest } = overrides;
const { configFile, ignore, rules, ...rest } = overrides;

const result =
configFile !== undefined
Expand All @@ -20,7 +20,7 @@ export default function loadOptions(
return {
displayName: false,
evaluate: true,
rules: [
rules: rules ?? [
{
// FIXME: if `rule` is not specified in a config, `@linaria/shaker` should be added as a dependency
// eslint-disable-next-line import/no-extraneous-dependencies
Expand Down

0 comments on commit 2a55b03

Please sign in to comment.