When I run watchChange in webpack, the id is different from the value I imagined.
takuma-ru opened this issue · comments
takumaru commented
Environment
development environment
- unplugin : ^1.5.1
execution environment
- webpack : ^5
Reproduction
Library Code
Project to run the library
Describe the bug
I tried to use watchChange
to get the absolute Path of the changed file from the argument id
.
I was able to get the file name in the Vite environment, but it did not work correctly in the Webpack environment.
I was able to detect the file change, but the value I got was broken in the middle and I could not get the file name.
The actual value retrieved
/Users/xxx... /auto-story-generator/demo/next/src/app/_components
Imagined value
/Users/xxx... /auto-story-generator/demo/next/src/app/_components/ComponentName/ComponentName.tsx
Additional context
No response
Logs
No response
takumaru commented
Resolved