Paste >=19.7.0 compatibility with Twilio CLI #3416
-
Hey guys 👋 We're using Paste to develop custom plugins for Flex. We noticed that upgrading from
We're using Is it a known issue? Do we need to customize the default Webpack configuration in some way to avoid that? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
To double clarify, that's seen in 19.7.0, not just v20? v20 I might expect something like that as we changed the compilation target to browser, not node, but 19.7 is a little out of the blue. Is there also a longer error message or log you can share. That currently one doesn't tell us too much to work with. Thanks |
Beta Was this translation helpful? Give feedback.
Hi @dmitriy-kudelko
So, in
v19.7.0
we bumped our browser targets fromtarget: ['chrome66', 'firefox58', 'safari11', 'edge79', 'node12.19.0'],
totarget: ['chrome100', 'firefox100', 'safari14', 'edge100', 'node18.16.0'],
This helps make our bundles a little smaller as modern browsers and node now support many more JavaScript features that would no longer require being transpiled when we compile our typescript.
What this has resulted in is the removal of the object spread and object rest spread shims from our compiled JS. That, by the looks of it, is what is causing the Flex plugin builder to have problems. You might need to update that webpack config to transpile our code before it gets ru…