Skip to content

Commit

Permalink
ci: add more node.js versions (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Nov 8, 2021
1 parent 42ec18b commit 5337a47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [10.x, 12.x, 14.x]
node-version: [10.x, 12.x, 14.x, 16.x, 17.x]
webpack-version: [latest]

runs-on: ${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions test/TerserPlugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import path from "path";
import { SourceMapConsumer } from "source-map";
import CopyWebpackPlugin from "copy-webpack-plugin";
import RequestShortener from "webpack/lib/RequestShortener";
import { javascript, SourceMapDevToolPlugin } from "webpack";
import { javascript, SourceMapDevToolPlugin, util } from "webpack";

import del from "del";

Expand Down Expand Up @@ -935,7 +935,7 @@ describe("TerserPlugin", () => {
for (const assetName of Object.keys(assets)) {
const [, webpackHash] = assetName.match(/^.+?\.(.+?)\..+$/);
const { hashDigestLength, hashDigest, hashFunction } = output;
const cryptoHash = crypto
const cryptoHash = util
.createHash(hashFunction)
.update(readAsset(assetName, compiler, stats))
.digest(hashDigest)
Expand Down

0 comments on commit 5337a47

Please sign in to comment.