linagora / esn-frontend-common-libs

Common ground for OpenPaaS frontend (https://open-paas.org)
Other
4 stars 12 forks source link

Can not build applications #43

Closed chamerling closed 4 years ago

chamerling commented 4 years ago

The file esn-frontend-common-libs/src/frontend/js/modules/file.js exports an await function in strict mode: Uglifying source does not work as is.

Several solutions:

  1. Remove strict mode
  2. Rename the function and everywhere it is used
  3. Find webpack plugins/options
MichaelBailly commented 4 years ago

remove strict mode ?

chamerling commented 4 years ago

@MichaelBailly doing this just works fine:

Capture d’écran 2020-07-16 à 17 43 38

chamerling commented 4 years ago

Will go with renaming the function. Removing use strict does not work with babel which is also used during the build