1.在条件编译前面有字符
Module build failed (from ./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js):
Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.
- 问题体现:
#// #ifndef MP-WEIXIN 这里多了个#
2. 在条件编译后面有字符
SyntaxError: Unexpected identifier
- 问题体现:
//#ifdef MP-WEIXIN 小程序执行 后面多了字符
3.在条件编译后面有注释
SyntaxError: Unexpected token '}'
- 问题体现:
//#ifdef MP-WEIXIN //小程序执行后面有注释
4.条件编译没成对出现
Error: Unbalanced delimiter found in string
- 问题体现:
//#ifdef MP-WEIXIN 只有前缀,没有//#endif