functionland / fula-archived

Client-server stack for Web3! Turn your Raspberry Pi to a BAS server in minutes and enjoy the freedom of decentralized Web with a superior user experience!
https://fx.land
MIT License
4 stars 0 forks source link

FIX: fix babel and esbuild warning's #105

Closed farhoud closed 2 years ago

farhoud commented 2 years ago

when build the project we have 4 warning that broke our build's

 ==[ SUCCESS WITH WARNINGS: 4 projects ]========================================

--[ WARNING: async-later ]-----------------------------------[ 2.42 seconds ]--

Dynamic import can only be supported when transforming ES modules to AMD, CommonJS or SystemJS. Only the parser plugin will be enabled.

--[ WARNING: @functionland/file-protocol ]-------------------[ 9.23 seconds ]--

Dynamic import can only be supported when transforming ES modules to AMD, CommonJS or SystemJS. Only the parser plugin will be enabled.

--[ WARNING: @functionland/graph-protocol ]------------------[ 7.33 seconds ]--

Dynamic import can only be supported when transforming ES modules to AMD, CommonJS or SystemJS. Only the parser plugin will be enabled.

Projects succeeded with warnings.
--[ WARNING: @functionland/rn-fula ]-------------------------[ 0.88 seconds ]--

Warning: G] Using direct eval with a bundler is not recommended and may cause problems

    ../fula-client/dist/web/index.js:11223:18:
      11223 │         var mod = eval("quire".replace(/^/, "re"))(moduleName);
            ╵                   ~~~~

  You can read more about direct eval and bundling here: https://esbuild.github.io/link/direct-eval