Skip to content

Commit 3ddd595

Browse files
committed
feature: add plugins
1 parent 73d2f18 commit 3ddd595

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/src/parsers/utils/compileModule.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import pluginNodejs from '@putout/plugin-nodejs';
1010
import pluginMergeDestructuringProperties from '@putout/plugin-merge-destructuring-properties';
1111
import pluginMaybe from '@putout/plugin-maybe';
1212
import pluginConvertConstToLet from '@putout/plugin-convert-const-to-let';
13+
import pluginExtractKeywordsFromVariables from '@putout/plugin-extract-keywords-from-variables';
1314

1415
import protect from '../utils/protectFromLoops';
1516

@@ -36,11 +37,12 @@ export default function compileModule(code, globals = {}) {
3637
plugins: [
3738
['convert-const-to-let', pluginConvertConstToLet],
3839
['declare', pluginDeclare],
40+
['declare-before-reference', pluginDeclareBeforeReference],
41+
['extract-keywords-from-variables', pluginExtractKeywordsFromVariables],
3942
['putout', pluginPutout],
4043
['maybe', pluginMaybe],
4144
['types', pluginTypes],
4245
['merge-destructuring-properties', pluginMergeDestructuringProperties],
43-
['declare-declare-before-reference', pluginDeclareBeforeReference],
4446
['convert-esm-to-commonjs', pluginConvertEsmToCommonjs],
4547
['optional-chaining', pluginOptionalChaining],
4648
['nodejs/declare-after-require', pluginNodejs.rules['declare-after-require']],

0 commit comments

Comments
 (0)