Skip to content

🐛 Object spread is not working  #1632

@mohsen1

Description

@mohsen1

🐛 Object spread (...obj) is failing to work with basic setup

🤔 Expected Behavior

No error

😯 Current Behavior

Parcel build hangs with this syntax error

yarn run v1.7.0
$ parcel build index.html
🚨  Desktop/parcel-spread-bug/src/components/SplitPane.js:74:8: Unexpected token (74:8)
  72 |       // top
  73 |       styleA = {
> 74 |         ...baseStyleVertical,
     |         ^
  75 |         top: 0,
  76 |         height: dividerPos + '%',
  77 |         paddingBottom: 3,

🔦 Context

Faced this bug here
fkling/astexplorer#330

💻 Code Sample

Repo to reproduce

https://github.com/mohsen1/parcel-spread-bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions