Using capacitor-filesharer in an Angular application produces the following output during the building process:
...\@byteowls\capacitor-filesharer\dist\esm\web.js depends on 'file-saver'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
This is because there is a dependency on file-sharer which uses the CommonJS syntax.
Platform(s) Support Requested
Android
iOS
Web
Describe Preferred Solution
Replace the dependency of file-sharer to file-sharer-es in order to use ES modules syntax.
Describe the Feature
Using capacitor-filesharer in an Angular application produces the following output during the building process:
This is because there is a dependency on file-sharer which uses the CommonJS syntax.
Platform(s) Support Requested
Describe Preferred Solution
Replace the dependency of file-sharer to file-sharer-es in order to use ES modules syntax.
Describe Alternatives
None
Related Code
None
Additional Context
None