Skip to content

Commit

Permalink
fix: properly resolve path to added entry
Browse files Browse the repository at this point in the history
  • Loading branch information
faergeek committed Jan 20, 2024
1 parent efa4f6a commit 2c847c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,11 @@ export default async function makeWebpackConfig({
name: 'webPage',
entry: mapEntry(entry.webPage, entryArray =>
(watch && dev
? ['@faergeek/tiny-browser-hmr-webpack-plugin/client']
? [
require.resolve(
'@faergeek/tiny-browser-hmr-webpack-plugin/client',
),
]
: []
).concat(entryArray),
),
Expand Down

0 comments on commit 2c847c8

Please sign in to comment.