We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eae428a commit 1f1340bCopy full SHA for 1f1340b
.changeset/selfish-otters-retire.md
@@ -0,0 +1,5 @@
1
+---
2
+"@devup-ui/webpack-plugin": patch
3
4
+
5
+Fix resolve type
packages/webpack-plugin/src/plugin.ts
@@ -5,6 +5,7 @@ import {
stat,
6
writeFileSync,
7
} from 'node:fs'
8
+import { createRequire } from 'node:module'
9
import { dirname, join } from 'node:path'
10
import { fileURLToPath } from 'node:url'
11
@@ -106,7 +107,9 @@ export class DevupUIWebpackPlugin {
106
107
exclude: /node_modules/,
108
use: [
109
{
- loader: join(_dirname, 'loader.js'),
110
+ loader: createRequire(import.meta.url).resolve(
111
+ '@devup-ui/webpack-plugin/loader',
112
+ ),
113
options: {
114
package: this.options.package,
115
cssFile: this.options.cssFile,
0 commit comments