#3937·snowpack

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

Author: andrisole92Created Jun 16, 2023Updated Jun 16, 2023

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