Hi, I was stumbling upon an issue with some minimized JS in the package r-cran-jsonld (ITPed in #898224). I tried to recreate jsonld.min.js and have written a script[1] which calls webpack in a clone of the Github reporsitory. Unfortunately the webpack call ends in:
webpack-merge@4.1.2 node_modules/webpack-merge └── lodash@4.17.10 Hash: eaf5c95c94821ab4944c9f696b4a89040915c26b Version: webpack 3.5.6 Child Hash: eaf5c95c94821ab4944c Time: 140ms Asset Size Chunks Chunk Names jsonld.js 3.61 kB 0 [emitted] jsonld [0] multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js 100 bytes {0} [built] ERROR in multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js Module not found: Error: Can't resolve 'babel-loader' in '/home/andreas/debian-maintain/salsa/r-pkg-team/0_prospective/r-cran-jsonld/debian/JS/jsonld.js' @ multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js ERROR in multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js Module not found: Error: Can't resolve 'core-js/fn/array/includes' in '/home/andreas/debian-maintain/salsa/r-pkg-team/0_prospective/r-cran-jsonld/debian/JS/jsonld.js' @ multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js ERROR in multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js Module not found: Error: Can't resolve 'core-js/fn/object/assign' in '/home/andreas/debian-maintain/salsa/r-pkg-team/0_prospective/r-cran-jsonld/debian/JS/jsonld.js' @ multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js ERROR in multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js Module not found: Error: Can't resolve 'core-js/fn/promise' in '/home/andreas/debian-maintain/salsa/r-pkg-team/0_prospective/r-cran-jsonld/debian/JS/jsonld.js' @ multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js ERROR in multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js Module not found: Error: Can't resolve 'core-js/fn/string/starts-with' in '/home/andreas/debian-maintain/salsa/r-pkg-team/0_prospective/r-cran-jsonld/debian/JS/jsonld.js' @ multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js ERROR in multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js Module not found: Error: Can't resolve 'core-js/fn/symbol' in '/home/andreas/debian-maintain/salsa/r-pkg-team/0_prospective/r-cran-jsonld/debian/JS/jsonld.js' @ multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js ERROR in multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js Module not found: Error: Can't resolve 'regenerator-runtime/runtime' in '/home/andreas/debian-maintain/salsa/r-pkg-team/0_prospective/r-cran-jsonld/debian/JS/jsonld.js' @ multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js Child Hash: 9f696b4a89040915c26b Time: 126ms Asset Size Chunks Chunk Names jsonld.min.js 1.24 kB 0 [emitted] jsonld [0] multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js 100 bytes {0} [built] ERROR in multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js Module not found: Error: Can't resolve 'babel-loader' in '/home/andreas/debian-maintain/salsa/r-pkg-team/0_prospective/r-cran-jsonld/debian/JS/jsonld.js' @ multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js ERROR in multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js Module not found: Error: Can't resolve 'core-js/fn/array/includes' in '/home/andreas/debian-maintain/salsa/r-pkg-team/0_prospective/r-cran-jsonld/debian/JS/jsonld.js' @ multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js ERROR in multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js Module not found: Error: Can't resolve 'core-js/fn/object/assign' in '/home/andreas/debian-maintain/salsa/r-pkg-team/0_prospective/r-cran-jsonld/debian/JS/jsonld.js' @ multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js ERROR in multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js Module not found: Error: Can't resolve 'core-js/fn/promise' in '/home/andreas/debian-maintain/salsa/r-pkg-team/0_prospective/r-cran-jsonld/debian/JS/jsonld.js' @ multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js ERROR in multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js Module not found: Error: Can't resolve 'core-js/fn/string/starts-with' in '/home/andreas/debian-maintain/salsa/r-pkg-team/0_prospective/r-cran-jsonld/debian/JS/jsonld.js' @ multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js ERROR in multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js Module not found: Error: Can't resolve 'core-js/fn/symbol' in '/home/andreas/debian-maintain/salsa/r-pkg-team/0_prospective/r-cran-jsonld/debian/JS/jsonld.js' @ multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js ERROR in multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js Module not found: Error: Can't resolve 'regenerator-runtime/runtime' in '/home/andreas/debian-maintain/salsa/r-pkg-team/0_prospective/r-cran-jsonld/debian/JS/jsonld.js' @ multi regenerator-runtime/runtime core-js/fn/array/includes core-js/fn/object/assign core-js/fn/promise core-js/fn/string/starts-with core-js/fn/symbol ./lib/index.js Any idea how to get the minimized JS? Simply taking the non-minimized jsonld.js does not work. The file size of this uncompressed file is way smaller than the minimazion result and doese not work together with the R code. Thus I really need to undergo the process to create the minimized JS. Any idea how to approach this? Kind regards Andreas. PS: I'm not subscribed to pkg-javascript-devel - please be so kind to CC me. [1] https://salsa.debian.org/r-pkg-team/r-cran-jsonld/blob/master/debian/JS/get-jsonld.min -- http://fam-tille.de