Replies: 1 comment 1 reply
-
My assumption is that this is some-sort of minified and injected copy of ARToolkitNFT.js, but should the Dev build have it as non-minified code? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For my security review, I have to have all my code unminified, so I'm trying to build out the developer version of the ARnft library.
But... I'm doing something wrong, and I'm not sure what. No matter what I do to the webpack.config.js, I keep ending up with a large chunk of minified code in the dist>ARnft.js file, and it's driving me crazy.
It looks like this (around line 1260);
function Worker_fn() { return _node_modules_worker_loader_dist_runtime_inline_js__WEBPACK_IMPORTED_MODULE_0___default()("/******/ (() => { // webpackBootstrap\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ \"./node_modules/@webarkit/jsartoolkit-nft/dist/ARToolkitNFT.js\":\n/*!*********************************************************************!*\\\n !*** ./node_modules/@webarkit/jsartoolkit-nft/dist/ARToolkitNFT.js ***!\n \\*********************************************************************/\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\n/*! For license information please see ARToolkitNFT.js.LICENSE.txt */\r\n!function(A,I){if(true)module.exports=I();else { var B, g; }}(\"undefined\"!=typeof self?self:this,(()=>(()=>{var A={61:(A,I,g)=>{var B=g(698).default;function C(){\"use strict\";A.exports=C=function(){return g},A.exports.__esModule=!0,A.exports.default=A.exports;var I,g={},Q=Object.prototype,E=Q.hasOwnProperty,i=Object.defineProperty||function(A,I,g){A[I]=g.value},o=\"function\"==typeof Symbol?Symbol:{},D=o.iterator||\"@@iterator\",a=o.asyncIterator||\"@@asyncIterator\",w=o.toStringTag||\"@@toStringTag\";function s(A,I,g){return Object.defineProperty(A,I,{value:g,enumerable:!0,configurable:!0,writable:!0}),A[I]}try{s({},\"\")}catch(I){s=function(A,I,g){return A[I]=g}}function t(A,I,g,B){var C=I&&I.prototype instanceof e?I:e,Q=Object.create(C.prototype),E=new l(B||[]);return i(Q,\"_invoke\",{value:K(A,g,E)}),Q}function G(A,I,g){try{return{type:\"normal\",arg:A.call(I,g)}}catch(A){return{type:\"throw\",arg:A}}}g.wrap=t;var h=\"suspendedStart\",R=\"suspendedYield\",F=\"executing\",r=\"completed\",y={};function e(){}function S(){}function N(){}var n={};s(n,D,(function(){return this}));var M=Object.getPrototypeOf,c=M&&M(M(H([])));c&&c!==Q&&E.call(c,D)&&(n=c);var k=N.prototype=e.prototype=Object.create(n);function U(A){[\"next\",\"throw\",\"return\"].forEach((function(I)
etc. etc. etc.
It's huge and takes up about half the file.
Has anyone else encounter this issue? If you resolved it, what were the settings you used?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions