Quoting Pirate Praveen (2021-05-14 13:46:28) > terser-webpack-plugin needs terser at least version 4.8. Is there any > known blockers I can help with?
Thanks for asking.
Draft package in git fails like this:
cd dist && ../bin/terser \
--mangle --compress \
--source-map 'content=bundle.js.map,includeSources=true' \
--output bundle.min.js \
-- bundle.js
Parse error at undefined:undefined,undefined
/build/node-terser-4.8.0/bin/terser:244
var lines = files[ex.filename].split(/\r?\n/);
^
TypeError: Cannot read property 'split' of undefined
at run (/build/node-terser-4.8.0/bin/terser:244:44)
at Object.<anonymous> (/build/node-terser-4.8.0/bin/terser:188:5)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47
/build/node-terser-4.8.0/tools/exit.js:14
throw exit;
^
[Function: exit]
I suspect it is related to patch 1001 to use commander 4 - would sure be
helpful to have a pair of fresh eyes on it.
- Jonas
--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: signature
-- Pkg-javascript-devel mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel
