Improve @babel/runtime esm stability (#12883)
This commit is contained in:
18
test/runtime-integration/expected-esm.txt
Normal file
18
test/runtime-integration/expected-esm.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
================== import - auto ====================
|
||||
typeof inheritsLoose: function
|
||||
A.__proto__ === B true
|
||||
================= import - esm ======================
|
||||
typeof toArray: function
|
||||
arr: 1,2,3
|
||||
=============== import - corejs ====================
|
||||
typeof Set: function
|
||||
arr: 1,2,3
|
||||
================= require - auto ====================
|
||||
typeof objectWithoutProperties: function
|
||||
typeof objectWithoutProperties.default: function
|
||||
obj: { b: 2, [Symbol(Symbol.toStringTag)]: 5 }
|
||||
================= require - esm =====================
|
||||
Error: Must use import to load ES Module: <ROOT>/packages/babel-runtime/helpers/toPrimitive/_index.mjs
|
||||
=============== require - corejs ====================
|
||||
typeof Set: function
|
||||
arr: 1,2,3
|
||||
Reference in New Issue
Block a user