GrapesJS / preset-newsletter

GrapesJS preset configuration for the newsletter editor.
https://grapesjs.com/demo-newsletter-editor.html
BSD 3-Clause "New" or "Revised" License
197 stars 143 forks source link

Breaks when building with Angular6 in production Model #57

Closed umairabid closed 1 year ago

umairabid commented 5 years ago

The plugins works fine locally when it is built with no optimisations in angular i.e. through following command

ng build --configuration staging --buildOptimizer=false --optimization=false

However when I attempt to build my project with simple ng build --configuration, it breaks at https://github.com/artf/grapesjs-preset-newsletter/blob/master/src/commands.js#L10 giving exception that r is not function r being tglImagesCommand

Has anybody experienced this with angular?

umairabid commented 5 years ago

Why was this https://github.com/artf/grapesjs-preset-newsletter/blame/master/src/toggleImagesCommand.js#L1 changed to export from define