mirror of
https://github.com/cockpit-project/cockpit.git
synced 2026-11-03 21:49:50 -09:00
esbuild-compress-plugin: fix a shadow
`path` is the `node:path` module, so avoid shadowing it with a local.
This commit is contained in:
parent
19402ce11f
commit
313b77cef4
1 changed files with 2 additions and 2 deletions
|
|
@ -35,9 +35,9 @@ export const cockpitCompressPlugin = ({ subdir = '', exclude = null } = {}) => (
|
|||
setup(build) {
|
||||
build.onEnd(async () => {
|
||||
const gzipPromises = [];
|
||||
const path = "./dist/" + subdir;
|
||||
const outpath = "./dist/" + subdir;
|
||||
|
||||
for await (const dirent of getAllFiles(path)) {
|
||||
for await (const dirent of getAllFiles(outpath)) {
|
||||
if (exclude && exclude.test(dirent))
|
||||
continue;
|
||||
if (dirent.endsWith('.js') || dirent.endsWith('.css')) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue