<div id="geary-body" dir="auto"><div><br></div></div><div id="geary-quote" dir="auto"><br>On Wed, May 9, 2018 at 3:05 PM, Andreas Tille <andreas@fam-tille.de> wrote:<br><blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;">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:



<a href="mailto:webpack-merge@4.1.2">webpack-merge@4.1.2</a> node_modules/webpack-merge
└── <a href="mailto:lodash@4.17.10">lodash@4.17.10</a>
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
    
    </div></blockquote><span style="white-space: pre-wrap;"><div><span style="white-space: pre-wrap;"><br></span></div>You'll need to update webpack.config.js with system path for it to find apt installed modules.</span><div><span style="white-space: pre-wrap;"><br></span></div><div><blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;">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?<br></div></blockquote><span style="white-space: pre-wrap;"><br></span></div><div><div><span style="white-space: pre-wrap;">https://wiki.debian.org/Javascript/#Using_build_tools_like_grunt has examples.</span></div><div><span style="white-space: pre-wrap;"><br></span></div><div><blockquote type="cite"></blockquote></div></div></div>