Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

hello.js source file is mangled, being overridden and growing in size due to webpack #22

@bomzj

Description

@bomzj

In fresh vue cli 4 hello.js is constantly being overridden with transpiled/minfied version and its size grows all the time since running npm run server command.

Version: webpack 4.43.0
Time: 8378ms
Built at: 06/06/2020 11:32:01 PM
   Asset     Size  Chunks             Chunk Names
hello.js  262 KiB       0  [emitted]  hello
Entrypoint hello = hello.js
[74] C:/Projects/cryptofair/node_modules/core-js/modules/es.regexp.exec.js 186 bytes {0} [built]
[79] ./hello.js 425 KiB {0} [built]
[80] C:/Projects/cryptofair/node_modules/core-js/modules/es.symbol.js 12.8 KiB {0} [built]
[85] C:/Projects/cryptofair/node_modules/core-js/modules/es.symbol.description.js 2.08 KiB {0} [built]
[86] C:/Projects/cryptofair/node_modules/core-js/modules/es.symbol.iterator.js 208 bytes {0} [built]
[87] C:/Projects/cryptofair/node_modules/core-js/modules/es.symbol.to-string-tag.js 217 bytes {0} [built]
[88] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.concat.js 2.34 KiB {0} [built]
[90] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.for-each.js 300 bytes {0} [built]
[91] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.index-of.js 973 bytes {0} [built]
[92] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.is-array.js 228 bytes {0} [built]
[93] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.join.js 686 bytes {0} [built]
[94] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.slice.js 2.13 KiB {0} [built]
[95] C:/Projects/cryptofair/node_modules/core-js/modules/es.date.to-string.js 605 bytes {0} [built]
[96] C:/Projects/cryptofair/node_modules/core-js/modules/es.function.bind.js 248 bytes {0} [built]
[98] C:/Projects/cryptofair/node_modules/core-js/modules/es.function.name.js 680 bytes {0} [built]
    + 114 hidden modules
Hash: ac69718c4df8bcdfb6f3
Version: webpack 4.43.0
Time: 9244ms
Built at: 06/06/2020 11:32:11 PM
   Asset     Size  Chunks             Chunk Names
hello.js  298 KiB       0  [emitted]  hello
Entrypoint hello = hello.js
[74] C:/Projects/cryptofair/node_modules/core-js/modules/es.regexp.exec.js 186 bytes {0} [built]
[79] ./hello.js 506 KiB {0} [built]
[80] C:/Projects/cryptofair/node_modules/core-js/modules/es.symbol.js 12.8 KiB {0} [built]
[85] C:/Projects/cryptofair/node_modules/core-js/modules/es.symbol.description.js 2.08 KiB {0} [built]
[86] C:/Projects/cryptofair/node_modules/core-js/modules/es.symbol.iterator.js 208 bytes {0} [built]
[87] C:/Projects/cryptofair/node_modules/core-js/modules/es.symbol.to-string-tag.js 217 bytes {0} [built]
[88] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.concat.js 2.34 KiB {0} [built]
[90] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.for-each.js 300 bytes {0} [built]
[91] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.index-of.js 973 bytes {0} [built]
[92] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.is-array.js 228 bytes {0} [built]
[93] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.join.js 686 bytes {0} [built]
[94] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.slice.js 2.13 KiB {0} [built]
[95] C:/Projects/cryptofair/node_modules/core-js/modules/es.date.to-string.js 605 bytes {0} [built]
[96] C:/Projects/cryptofair/node_modules/core-js/modules/es.function.bind.js 248 bytes {0} [built]
[98] C:/Projects/cryptofair/node_modules/core-js/modules/es.function.name.js 680 bytes {0} [built]
    + 114 hidden modules
Hash: 88e661aca53285e31615
Version: webpack 4.43.0
Time: 10290ms
Built at: 06/06/2020 11:32:21 PM
   Asset     Size  Chunks             Chunk Names
hello.js  333 KiB       0  [emitted]  hello
Entrypoint hello = hello.js
[74] C:/Projects/cryptofair/node_modules/core-js/modules/es.regexp.exec.js 186 bytes {0} [built]
[79] ./hello.js 591 KiB {0} [built]
[80] C:/Projects/cryptofair/node_modules/core-js/modules/es.symbol.js 12.8 KiB {0} [built]
[85] C:/Projects/cryptofair/node_modules/core-js/modules/es.symbol.description.js 2.08 KiB {0} [built]
[86] C:/Projects/cryptofair/node_modules/core-js/modules/es.symbol.iterator.js 208 bytes {0} [built]
[87] C:/Projects/cryptofair/node_modules/core-js/modules/es.symbol.to-string-tag.js 217 bytes {0} [built]
[88] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.concat.js 2.34 KiB {0} [built]
[90] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.for-each.js 300 bytes {0} [built]
[91] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.index-of.js 973 bytes {0} [built]
[92] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.is-array.js 228 bytes {0} [built]
[93] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.join.js 686 bytes {0} [built]
[94] C:/Projects/cryptofair/node_modules/core-js/modules/es.array.slice.js 2.13 KiB {0} [built]
[95] C:/Projects/cryptofair/node_modules/core-js/modules/es.date.to-string.js 605 bytes {0} [built]
[96] C:/Projects/cryptofair/node_modules/core-js/modules/es.function.bind.js 248 bytes {0} [built]
[98] C:/Projects/cryptofair/node_modules/core-js/modules/es.function.name.js 680 bytes {0} [built]
    + 114 hidden modules

This is a part of hello.js just to see how it changes after npm run serve

!function(t,n){for(var r in n)t[r]=n[r]}(exports,function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=79)}([function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){var e=r(3),o=r(21).f,i=r(9),u=r(11),c=r(32),a=r(55),f=r(61);t.exports=function(t,n){var r,s,l,p,v,g=t.target,d=t.global,y=t.stat;if(r=d?e:y?e[g]||c(g,{}):(e[g]||{}).prototype)for(s in n){if(p=n[s],l=t.noTargetGet?(v=o(r,s))&&v.value:r[s],!f(d?s:g+(y?".":"#")+s,t.forced)&&void 0!==l){if

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions