webpack-contrib / webpack-bundle-analyzer

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap
MIT License
12.56k stars 483 forks source link

build: add node v16 & update Github actions #539

Closed amareshsm closed 1 year ago

amareshsm commented 1 year ago

Description

  1. Add node v16 to workflow.
  2. update Github actions to v3.
valscion commented 1 year ago

Can we keep the existing Node.js version 10 tests as they were?

valscion commented 1 year ago

Hi @amareshsm are you still working on this PR or is it stale?

amareshsm commented 1 year ago

Can we keep the existing Node.js version 10 tests as they were?

done. pls, approve the workflow.

valscion commented 1 year ago

Thanks, I did that! I'll try to remember to check this PR tomorrow when I'm back at the computer ☺️

valscion commented 1 year ago

Huh, v18.x seems to be failing and I have no clue why:

 [13:47:42] 'compileViewerScripts' errored after 1.63 s
[13:47:42] Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at BulkUpdateDecorator.hashFactory (/home/runner/work/webpack-bundle-analyzer/webpack-bundle-analyzer/node_modules/webpack/lib/util/createHash.js:144:18)
    at BulkUpdateDecorator.update (/home/runner/work/webpack-bundle-analyzer/webpack-bundle-analyzer/node_modules/webpack/lib/util/createHash.js:46:50)
    at SourceMapSource.updateHash (/home/runner/work/webpack-bundle-analyzer/webpack-bundle-analyzer/node_modules/webpack-sources/lib/SourceMapSource.js:233:8)
    at NormalModule._initBuildHash (/home/runner/work/webpack-bundle-analyzer/webpack-bundle-analyzer/node_modules/webpack/lib/NormalModule.js:867:17)
    at handleParseResult (/home/runner/work/webpack-bundle-analyzer/webpack-bundle-analyzer/node_modules/webpack/lib/NormalModule.js:933:10)
    at /home/runner/work/webpack-bundle-analyzer/webpack-bundle-analyzer/node_modules/webpack/lib/NormalModule.js:1025:4
    at processResult (/home/runner/work/webpack-bundle-analyzer/webpack-bundle-analyzer/node_modules/webpack/lib/NormalModule.js:742:11)
    at /home/runner/work/webpack-bundle-analyzer/webpack-bundle-analyzer/node_modules/webpack/lib/NormalModule.js:806:5
[13:47:42] 'build' errored after 2.74 s
Error: Process completed with exit code 1.