Skip to content

Commit d3e9449

Browse files
authored
Merge pull request #1066 from gaearon/babel-rewire-fix
fix: babel 7 compatibility(again)
2 parents 98fa7f5 + 1cd525c commit d3e9449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/babel.dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ module.exports = function plugin(args) {
143143
exit({ node }, state) {
144144
const { file } = state
145145
const registrations = state[REGISTRATIONS]
146-
delete state[REGISTRATIONS] // eslint-disable-line no-param-reassign
146+
state[REGISTRATIONS] = []
147147

148148
// inject the code only if applicable
149149
if (

0 commit comments

Comments
 (0)