Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

Commit 4e9cd8d

Browse files
committed
fix: change babel runtime helpers path
in the last version of babel, @babel/runtime has become @babel/runtime-corejs2
1 parent bf00671 commit 4e9cd8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/evalComponentCode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = function evalComponentCode(code) {
2121
// depending on the preset that one is running,
2222
// babel will not always use the root interopRequireDefault
2323
// for babel es6, it uses .../builtin/es6/interop...
24-
if (/@babel[\\,\/]runtime\/helpers\/.*interopRequireDefault$/.test(element)) {
24+
if (/@babel[\\,\/]runtime(.*)\/helpers\/.*interopRequireDefault$/.test(element)) {
2525
return function(value) {
2626
return value
2727
}

0 commit comments

Comments
 (0)