vicb / windy-plugin-sounding

Sounding plugin for Windy.com.
https://www.windy.com/
MIT License
19 stars 5 forks source link

Fix processing of tsx files by SWC #19

Open johnmarkredding opened 3 months ago

johnmarkredding commented 3 months ago

There was an issue with rollup not correctly bundling the imported @reduxjs/toolkit package. The error was a bit confusing, and it was hard to find info regarding it on the forums. Debugging led me to including .tsx files in the rollupSwc plugin in rollup.config.js.

Original error

[!] RollupError: src/sounding.tsx (35:8): Expected ';', '}' or <eof> (Note that you need plugins to import files that are not JavaScript)
src/sounding.tsx (35:8)