agile-ts / agile

🌌 Global State and Logic Library for JavaScript/Typescript applications

Home Page:https://agile-ts.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

bennoinbeta opened this issue Β· comments

commented

πŸ› Bug report

πŸ€– Current Behavior

image

SyntaxError: Unexpected token '.'

🎯 Expected behavior

no error

commented

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

commented

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.