Skip to content

Commit ee2b70e

Browse files
authored
chore: remove uuid dev dependency (#5022)
1 parent 1c96231 commit ee2b70e

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@
140140
"unexpected-sinon": "^10.11.2",
141141
"update-notifier": "^4.1.0",
142142
"uslug": "^1.0.4",
143-
"uuid": "^8.3.0",
144143
"webpack": "^5.67.0",
145144
"webpack-cli": "^4.9.1"
146145
},

scripts/karma-rollup-plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
const os = require('os');
3333
const fs = require('fs');
3434
const path = require('path');
35-
const uuid = require('uuid');
35+
const {randomUUID} = require('crypto');
3636
const rollup = require('rollup');
3737
const minimatch = require('minimatch');
3838
const loadConfigFile = require('rollup/dist/loadConfigFile.js');
@@ -57,7 +57,7 @@ function framework(fileConfigs, pluginConfig, basePath, preprocessors) {
5757
)
5858
);
5959

60-
const bundleFilename = `${uuid.v4()}.rollup.js`;
60+
const bundleFilename = `${randomUUID()}.rollup.js`;
6161
let bundleLocation = path.resolve(
6262
pluginConfig.bundleDirPath ? pluginConfig.bundleDirPath : os.tmpdir(),
6363
bundleFilename

0 commit comments

Comments
 (0)