diff --git a/.changeset/little-pots-flow.md b/.changeset/little-pots-flow.md new file mode 100644 index 00000000..7168c030 --- /dev/null +++ b/.changeset/little-pots-flow.md @@ -0,0 +1,5 @@ +--- +"@devup-ui/webpack-plugin": patch +--- + +file dep path issue diff --git a/packages/webpack-plugin/src/plugin.ts b/packages/webpack-plugin/src/plugin.ts index fa6ca5c5..1d4d4685 100644 --- a/packages/webpack-plugin/src/plugin.ts +++ b/packages/webpack-plugin/src/plugin.ts @@ -6,7 +6,7 @@ import { writeFileSync, } from 'node:fs' import { createRequire } from 'node:module' -import { dirname, join } from 'node:path' +import { dirname, join, resolve } from 'node:path' import { fileURLToPath } from 'node:url' import { getCss, getThemeInterface, registerTheme } from '@devup-ui/wasm' @@ -75,7 +75,7 @@ export class DevupUIWebpackPlugin { } compiler.hooks.afterCompile.tap('DevupUIWebpackPlugin', (compilation) => { - compilation.fileDependencies.add(this.options.devupPath) + compilation.fileDependencies.add(resolve(this.options.devupPath)) }) }