使用 qiunDataCharts 无法使用代码保护功能,如何解决?
问题已经在多处反馈了, 我这个是 skyline 模式下遇到的问题, 错误提示是 动态引用 require , 要使用静态的, 但是我不知道怎么修改 QAQ,希望有个解决思路, 当前代码片段是组件化,另外原生我也是用,即直接用 uchart.min.js 会遇到一样的问题。 简化错误信息如下所示 message:common/vendor.js: Code protect is not available in common/vendor.js
require is not being used properly in 'ObjectProperty' 23676 | } 23677 |
function n(e2, t2, n2) { > 23678 | return e2(n2 = { path: t2, exports: {},
require: function(e3, t3) { | ^ 23679 | return function() { 23680 |
throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs"); 23681 | }(null == t3 && n2.path);