Skip to content

Commit

Permalink
Use localByDefault plugin for both local and global behaviours.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxb authored and madyankin committed Feb 23, 2022
1 parent d7cefc4 commit 3c8ba0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/behaviours.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export function getDefaultPlugins({
const scope = modulesScope({ generateScopedName, exportGlobals });

const plugins = {
[behaviours.LOCAL]: [values, localByDefault, extractImports, scope],
[behaviours.GLOBAL]: [values, extractImports, scope],
[behaviours.LOCAL]: [values, localByDefault({ mode: 'local' }), extractImports, scope],
[behaviours.GLOBAL]: [values, localByDefault({ mode: 'global' }), extractImports, scope],
};

return plugins[behaviour];
Expand Down

0 comments on commit 3c8ba0c

Please sign in to comment.