Allow require() of runtime helpers in Node.js 13.2-13.6 (#12893)
This commit is contained in:
9
test/runtime-integration/expected-cjs-absolute-13.2.txt
Normal file
9
test/runtime-integration/expected-cjs-absolute-13.2.txt
Normal 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/esm/toPrimitive.js
|
||||
=============== require - corejs ====================
|
||||
typeof Set: function
|
||||
arr: 1,2,3
|
||||
@@ -22,6 +22,8 @@ const expectedCjsAbsolute =
|
||||
? "expected-cjs-absolute-10.txt"
|
||||
: major === 13 && minor <= 1
|
||||
? "expected-cjs-absolute-13.0.txt"
|
||||
: major === 13 && minor <= 3
|
||||
? "expected-cjs-absolute-13.2.txt"
|
||||
: "expected-cjs-absolute.txt";
|
||||
|
||||
test(
|
||||
|
||||
Reference in New Issue
Block a user