agile-ts / agile

🌌 Global State and Logic Library for JavaScript/Typescript applications
https://agile-ts.org
MIT License
95 stars 8 forks source link

Netlify deploy error ("SyntaxError: Unexpected token '.'") #203

Closed bennobuilder closed 3 years ago

bennobuilder commented 3 years ago

🐛 Bug report

🤖 Current Behavior

image

SyntaxError: Unexpected token '.'

🎯 Expected behavior

no error

bennobuilder commented 3 years ago

It looks like that the @agile-ts/core isn't correctly bundled to commonjs..

Wrong bundled commonjs (@agile-ts/core v0.2.5)

image

Working bundled commonjs (@agile-ts/core v0.1.3)

image

bennobuilder commented 3 years ago

Decided to only support browsers supporting 'ES Modules' because otherwise, each package of AgileTs would require an additional (prod) dependency (@babel/runtime).

See:

image

If you need/want to support browsers like IE11 let me know, and I'll see if we can/want to support browsers without support for ES modules after all.