antvis/G6

The issue has been closed
Parcel with g6: Unexpected token, expected "," #2332
Madeorsk posted onGitHub
- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
Install parcel-bundler (yarn global add parcel-bundler for example), then do yarn build on the example repository. It will fail.
Environment | Info |
---|---|
g6 | 4.0.0 |
System | - |
Browser | - |
I cannot add g6 to a project where I use parcel. Is it a problem of parcel or g6?
🚨 /home/madeorsk/[...]/js/app/node_modules/@antv/g6/dist/g6.min.js:29:1503348: Unexpected token, expected "," (29:1503348)
<!-- generated by antv-issue-helper. DO NOT REMOVE -->