wemark icon indicating copy to clipboard operation
wemark copied to clipboard

无法使用代码保护功能

Open surethink opened this issue 6 years ago • 3 comments

小程序编辑器选择真机调试编译代码时,弹出提示:无法使用代码保护功能 。取消编辑器的代码保护功能后可以正常真机调试,如果可能的还是希望能做下兼容,以正常使用代码保护功能

谢谢!

报错如下: 无法使用代码保护功能 in components/wemark/remarkable.js require is not being used properly in 'UnaryExpression' 1 | /*! remarkable 1.6.0 https://github.com/jonschlinkert/remarkable @license MIT */

2 | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Remarkable=e()}}(function(){var e;return function t(e,r,n){function s(i,l){if(!r[i]){if(!e[i]){var a="function"==typeof require&&require;if(!l&&a)return

surethink avatar May 26 '19 13:05 surethink

代码保护功能和代码压缩是一回事吗?可以尝试更新一下remarkable.js试试看会不会好?

TooBug avatar May 26 '19 23:05 TooBug

同样遇到这个问题,预览的时候报错。 TypeError:requrie(...) is not a constructor 然后我在remarkable.js中加入了console.log('1'),发现只有开发者工具中会有1输出,预览的调试里面没有。 关掉代码保护后就正常了。

L-M-Sherlock avatar Oct 06 '19 17:10 L-M-Sherlock

同遇到该问题

Erimus-Koo avatar May 07 '20 18:05 Erimus-Koo