windicss / windicss-webpack-plugin

🍃 Windi CSS for webpack ⚡
https://windicss.org/integrations/webpack.html
79 stars 19 forks source link

Optional chaining (?.) in dist/plugin.cjs makes build project crash while in Node.js version lower than 14 #112

Closed xliez closed 2 years ago

xliez commented 2 years ago

Describe the bug Optional chaining (?.) in dist/plugin.cjs make build crash while in Node.js version lower than 14

To Reproduce Steps to reproduce the behavior:

  1. Clone repository '...'
  2. Run '....'
  3. See error

Expected behavior Build pass

Screenshots image

Additional context Add any other context about the problem here.

harlan-zw commented 2 years ago

Hey @xliez

Thanks for reporting the issue! Have updated the build configuration for an es2019 target which should fix this.

If you have issues with 1.7.2 can you please let me know :)