0ebba60 Migrate to ESM modules

Authored and Committed by Radoslaw Szwajkowski 2 years ago
    Migrate to ESM modules
    
    Changes:
    1. require nodejs v14+
    2. add linting for config folder
    3. dependencies:
      a) flow 0.163 is required to support import.meta.url (part of
         workaround to import JSON)
      b) remove whatwg-fetch polyfill - all modern browser support fetch
      c) remove postcss-safe-parser: CssMinimizerPlugin works well with
         built-in parser
    4. exceptions that require CommonJS (renamed to *.cjs)
      a) eslint 7.x - we cannot update to 8.x as our eslint-webpack-plugin
         for wp4 requires older version
      b) babel.app.config as it is  being used synchronously by eslint
    5. remove alternative client for displaying errors in WebpackDevServer
       - build-in solution was improved in newer versions
    
        
file modified
+0 -1
config/babel.app.config.cjs config/babel.app.config.js
file renamed
file was renamed with no change to the file
file modified
+3 -3
file modified
+1 -1
config/eslint.cjs config/eslint.js
file renamed
+6 -1
file modified
+1 -1
file modified
+3 -3
file added
+11
file modified
+6 -5
file removed
-15
file modified
+28 -43
file modified
+33 -31
file modified
+4 -6
file modified
+21 -19
file modified
+2 -1
file modified
+1 -1
file modified
+13 -13
file modified
+2 -2
file modified
+2 -7
file modified
+0 -5