Re: Modules into Tapestry 5.5.0

2020-04-14 Thread Carlos Montero Canabal
Thank you so much for your response. I will try tonight and give us some feedback. I checked that the mixin for autocomplete is failing in production mode for the same reason. It could be a problem if we import libraries with no "use strict" restrictions. Best regards Carlos Montero El mar., 14

Re: Modules into Tapestry 5.5.0

2020-04-14 Thread Cezary Biernacki
Hi Carlos, Tapestry in the production mode minifies all JavaScript. It seems that minification in T5.5 adds "'use strict';" pragma to minified files. "'use strict';" instructs the browser to fail if anything is wrong with your code, instead of trying quietly to fix problems. In your code "init = *f

Modules into Tapestry 5.5.0

2020-04-13 Thread Carlos Montero Canabal
Hi Tapestry users! I'm deploying my first 5.5.0 app into production... and I checked that my modules js doesnt work with production mode = true. Example: article.js: define(["jquery", "prism"], *function*($, Prism) { init = *function*(){ Prism && Prism.hasOwnProperty('default') ? Prism['defau