收藏
回答

weapp-adapter源码修改后用webpack打包不了

ERROR in ./src/window.js

Module parse failed: Unexpected token (3:7)

You may need an appropriate loader to handle this file type.

| import Canvas from './Canvas'

| 

| export document from './document'

| export navigator from './navigator'

| export XMLHttpRequest from './XMLHttpRequest'

 @ ./src/index.js 1:0-35 7:2-26 8:4-20 10:2-29 11:4-20 14:6-20 15:4-18 15:38-62 16:4-18 16:41-68 23:22-29 28:17-24 33:22-38 38:17-33 44:22-29 45:20-27 47:20-27


最后一次编辑于  2018-05-25  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏关注问题回答