On Wed, May 9, 2018 at 5:35 AM, Andreas Tille <andr...@fam-tille.de> wrote: > 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 > ... > 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 > ... > 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? > ... > [1] > https://salsa.debian.org/r-pkg-team/r-cran-jsonld/blob/master/debian/JS/get-jsonld.min >
Hi, I'm an upstream developer for jsonld.js and the one to blame for the webpack config. ;-) I'm getting 404 on that salsa repo so I'm not sure what your script is doing. In npm world you can build jsonld.min.js with "npm install && npm run build-webpack". That's how it's published to npm. I've never tried building with apt installed modules. If upstream changes would help make this all easier, let me know. -dave