wl-online-payments-direct / sdk-client-js

Other
3 stars 2 forks source link

fix(package): default export should be last #7

Closed Wasseing closed 1 year ago

Wasseing commented 1 year ago

Fixing the error from webpack bundler

Module not found: Error: Default condition should be last one

The build using webpack 5 is throwing an error when importing the library. Idk if this is thrown by babel, ts-loader or svelte loader but a rule seems to enforce that the default export is define last

online-payments-support-team commented 1 year ago

Hello Wasseing,

Thank you for reporting the issue and proposing a fix. We will process your suggestion and make it, or a similar solution, available in the next release.

Have a nice day! Worldline online payments support

online-payments-support-team commented 1 year ago

Hello Wasseing,

Your suggested fix was applied in version 3.0.1. Thank you again!

Kind regards, Worldline online payments support