-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,8 +31,8 @@ test('object spread', () => { | |
const { code } = babel.transformSync(` | ||
const a = { ...b } | ||
`.trim(), defaultOptions) | ||
expect(code).toMatch(`import "core-js/modules/es6.object.assign"`) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
yyx990803
Author
Member
|
||
expect(code).toMatch(`var a = Object.assign({}, b)`) | ||
expect(code).toMatch(`import _objectSpread from`) | ||
expect(code).toMatch(`var a = _objectSpread({}, b)`) | ||
}) | ||
|
||
test('dynamic import', () => { | ||
|
If you want this back (probably do), can pass
loose: true
anduseBuiltIns: true
. This is since someone made a PR to add more spec behavior by default