Improve @babel/runtime esm stability (#12883)

This commit is contained in:
Nicolò Ribaudo
2021-02-24 20:04:03 +01:00
committed by GitHub
parent c9da9650eb
commit 6a471decc3
47 changed files with 2535 additions and 159 deletions

View File

@@ -0,0 +1,9 @@
================= 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