Skip to content

Commit 7eb4444

Browse files
test: find the runtime in a universal bundle built on Windows too
webpack names a module by its path, which on Windows is written with backslashes, so the check that the runtime is in the bundle accepts either separator. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UjuMAuk9o6UazjHzcAQCTA
1 parent 07c1ca2 commit 7eb4444

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎test/universal-target.test.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,25 +102,25 @@ const RUNTIMES = [
102102
"this package's runtime over Server-Sent Events",
103103
{},
104104
"",
105-
/\/client\/index\.js\?/,
105+
/[\\/]client[\\/]+index\.js\?/,
106106
],
107107
[
108108
"this package's runtime over a WebSocket",
109109
{ transport: "ws" },
110110
"",
111-
/\/client\/index\.js\?/,
111+
/[\\/]client[\\/]+index\.js\?/,
112112
],
113113
[
114114
"webpack-dev-server's runtime over a WebSocket",
115115
{ transport: "ws", protocol: { type: "webpack-dev-server" } },
116116
WAITING,
117-
/\/client\/webpack-dev-server\/index\.js\?/,
117+
/[\\/]client[\\/]+webpack-dev-server[\\/]+index\.js\?/,
118118
],
119119
[
120120
"webpack-dev-server's runtime over Server-Sent Events",
121121
{ transport: "sse", protocol: { type: "webpack-dev-server" } },
122122
WAITING,
123-
/\/client\/webpack-dev-server\/index\.js\?/,
123+
/[\\/]client[\\/]+webpack-dev-server[\\/]+index\.js\?/,
124124
],
125125
[
126126
"webpack-dev-server's runtime through its re-export",

0 commit comments

Comments
 (0)