Skip to content

Conversation

@seateam
Copy link

@seateam seateam commented May 28, 2023

Solved the problem of upward compatibility. Because SDK only supports webpack4 and node16 packaging, webpack5 and vite packaging tools used by the latest React Native and Nuxt3 front-end frameworks are not compatible. Therefore, all the files under dist directory are packaged into a js file by using webpack4 and babel, and a global object of window.MetisSDK is exported, which can be directly referenced in any browser environment, thus solving the compatibility problem of different building tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant