Skip to content

Commit 6409377

Browse files
committed
Disable babel register on initial require
1 parent 5d860b1 commit 6409377

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lsp/util/getConfigWithLocations.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Visitor, NodePath } from '@babel/traverse'
44
import { dirname } from 'path'
55
import { resolveConfig } from '../../class-names'
66
const babel = require('@babel/register')
7+
babel.revert()
78

89
const LOCATION_PROP_PREFIX = '__twlsp_locations__'
910

0 commit comments

Comments
 (0)