Pete Lomax

Results 16 comments of Pete Lomax

Sorry, only just spotted this, for some reason github didn't notify me. It used to work a very (very) long time ago, and I believe I changed "Capture console output"...

Pong. What are CJS and ESM builds anyway? I was thinking of adding a section for use on Node.js along the lines of "submit a PR with any needed changes...

No idea whether what I've just done is anything close to what you meant.

Sure: F:\misc\highlightjs\highlight.js>node .\tools\build.js -t cdn Starting build. Finished build. Writing style files. node:fs:737 handleErrorFromBinding(ctx); ^ Error: EINVAL: invalid argument, read at Object.readSync (node:fs:737:3) at tryReadSync (node:fs:432:20) at Object.readFileSync (node:fs:478:19) at...

Yes, my copy is at https://github.com/petelomax/highlightjs-phix

I could probably add an empty dist folder, but I have absolutely no idea what "CDN build artifacts" are.

What's happening on this?

node ./tools/build.js -t node Starting build. Finished build. (node:5646) UnhandledPromiseRejectionWarning: /home/pete/highlight.js/node_modules/rollup/dist/shared/rollup.js:58 textEncoder ??= new TextEncoder(); ^ SyntaxError: Unexpected token '?' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at...

node -v said v12.22.9 (despite being ionstalled today) so after quite some struggle I've updated that to 20.12.2, and yay, it works!

There is now a dist folder in https://github.com/petelomax/highlightjs-phix