-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Object spread is not working #1632
Comments
Interesting:
edit |
I reduced this bug to simply: index.html <!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<script src="./index.js"></script>
</body>
</html> index.js var a = {
foo: 1
};
var b = {
...a,
bar: 2
};
|
note, it works with |
Parcel out of box includes |
That seems to work: I wonder why this works in node target though? |
Owkeey, so this is not a bug, closing this. |
This may not be a bug, but it is so usual that I expected it to be included by default. |
@danielo515 It will be in the next release see #1835 |
Awesome! |
So this doesn't work with external dependencies.
Is there a way to transpile third-party node_modules that don't have the configuration file? |
🐛 Object spread (
...obj
) is failing to work with basic setup🤔 Expected Behavior
No error
😯 Current Behavior
Parcel
build
hangs with this syntax error🔦 Context
Faced this bug here
fkling/astexplorer#330
💻 Code Sample
Repo to reproduce
https://github.com/mohsen1/parcel-spread-bug
The text was updated successfully, but these errors were encountered: