Closed huguodong closed 3 years ago
import * as THREE from 'three-platformize'; import WechatPlatform from 'three-platformize/src/WechatPlatform';
three-platformize可以正常引入 提示Error: module "pages/index/three-platformize/src/WechatPlatform.js" is not defined
需要使用rollup等打包工具,编译一下,可以参考
https://github.com/deepkolos/three-platformize-demo-wechat-simple
import * as THREE from 'three-platformize'; import WechatPlatform from 'three-platformize/src/WechatPlatform';
three-platformize可以正常引入 提示Error: module "pages/index/three-platformize/src/WechatPlatform.js" is not defined