Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange webpack content after build #6823

Closed
rochapablo opened this issue May 24, 2021 · 3 comments
Closed

Strange webpack content after build #6823

rochapablo opened this issue May 24, 2021 · 3 comments
Assignees

Comments

@rochapablo
Copy link

rochapablo commented May 24, 2021

Type of issue

Description

When I run gulp build --modules=modules.json the build/dist/prebid.js have some strange content like comments from webpack and a lot of \n and spaces.

Steps to reproduce

Test page

Expected results

A clean file less than 400K

Actual results

I'm getting a file of 480K

__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"JSEncrypt\": () => (/* binding */ JSEncrypt)\n/* harmony export */ });\n/* harmony import */ var _lib_jsbn_base64__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./lib/jsbn/base64 */ \"./lib/lib/jsbn/base64.js\");\n/* harmony import */ var _JSEncryptRSAKey__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./JSEncryptRSAKey */ \"./lib/JSEncryptRSAKey.js\");\n/* harmony import */ var _version_json__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./version.json */ \"./lib/version.
{\n                s = +s << 1;\n                --len;\n            }\n            s = "(" + len + " bit)\\n";\n        }\n        // decode the integer\n        if (neg) {\n            v = v - 256;\n        }\n        var n = new _int10__WEBPACK_IMPORTED_MODULE_0__.Int10(v);\n        for (var i = start + 1; i < 
whether log warn/error or not\n * @constructor\n */\nvar JSEncrypt = /** @class */ (function () {\n    function JSEncrypt(options) {\n        options = options || {};\n        this.default_key_size = options.default_key_size ? parseInt(options.default_key_size, 10) : 1024;\n        this.default_public_exponent = options.default_public_exponent || \"010001\"; // 65537 default openssl public exponent for rsa key type\n        this.log = options.log || false;\n        // The private and public key.\n        this.key = null;\n    }\n    /**\n     * Method to set the rsa key parameter (one method is enough to set both the public\n     * and the private key, since the private key contains the public key paramenters)\n     * Log a warning if logs are enabled\n     * @param {Object|string} key the pem encoded string or an object (with or without header/footer)\n     * @public\n     */\n    JSEncrypt.prototype.setKey = function (key) {\n        if (this.log &

Platform details

npm -v
7.6.3

node -v
v15.12.0

Prebid.js
4.40.0

Other information

The problem seems to be when I add adagioBidAdapter

@ChrisHuie ChrisHuie self-assigned this May 25, 2021
@ChrisHuie
Copy link
Collaborator

I think this might be related to the current use of the common chunks plugin. We are working on converting that to the now built-in plugin in webpack v4. So hopefully that fixes this.

@ChrisHuie
Copy link
Collaborator

@rochapablo I believe this could actually be a jsencrpyt issue -> #6699 removes this in a recent pr. Can you see if that has solved this issue?

@rochapablo
Copy link
Author

@ChrisHuie perfect! Thank you verify much, have a great week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants