Skip to content

🐛 BUG: Can't transpile files with new ES features such as optional chaining and private class fields #3937

@andrisole92

Description

@andrisole92

Quick checklist

  • I am using the latest version of Snowpack and all plugins.

What package manager are you using?

yarn

What operating system are you using?

macOS

Describe the bug

It looks like esinstall is using rollup "~2.37.1" which is 2 years old and does not support newer features like optional changing and private class fields.

So once I am trying to transpile file with esinstall install function I am getting the following error:

Unexpected token (1983:2) in /Users/aruzencevs/base/coursera/web/node_modules/pdfjs-dist/build/pdf.js

Steps to reproduce

N/A

Link to minimal reproducible example (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions