Skip to content

Commit 338b183

Browse files
authored
Merge pull request #30 from dev-five-git/fix-file-dep-issue
Fix file dep path issue
2 parents 33f9b16 + 3e92da2 commit 338b183

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/little-pots-flow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@devup-ui/webpack-plugin": patch
3+
---
4+
5+
file dep path issue

packages/webpack-plugin/src/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
writeFileSync,
77
} from 'node:fs'
88
import { createRequire } from 'node:module'
9-
import { dirname, join } from 'node:path'
9+
import { dirname, join, resolve } from 'node:path'
1010
import { fileURLToPath } from 'node:url'
1111

1212
import { getCss, getThemeInterface, registerTheme } from '@devup-ui/wasm'
@@ -75,7 +75,7 @@ export class DevupUIWebpackPlugin {
7575
}
7676

7777
compiler.hooks.afterCompile.tap('DevupUIWebpackPlugin', (compilation) => {
78-
compilation.fileDependencies.add(this.options.devupPath)
78+
compilation.fileDependencies.add(resolve(this.options.devupPath))
7979
})
8080
}
8181

0 commit comments

Comments
 (0)