cocos3dx v3.10 js require

cocos3dx v3.10 js require
0

I’m using cocos2dx for some years, but i’m new in js, now I’ve face to a problem:

my cocos version is 3.10, which I can not change, so update engine is not an option
I need using the setence “require(‘xxxxx’)” in this js project when i intergrate a 3rd sdk, how do i achive that? because if i’m using the require sentence directly, the main.js does not work, could i get some advice or suggestion