Skip to content

Commit 1aebd6d

Browse files
authored
fix(examples): set context of basic example to __dirname (#2345)
1 parent baf3cff commit 1aebd6d

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

examples/basic/rspack.config.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
* @type {import('@rspack/cli').Configuration}
33
*/
44
module.exports = {
5-
entry: {
6-
main: './src/index.js'
7-
},
8-
builtins: {
9-
html: [
10-
{
11-
template: './index.html'
12-
}
13-
]
14-
}
15-
}
5+
context: __dirname,
6+
entry: {
7+
main: './src/index.js'
8+
},
9+
builtins: {
10+
html: [
11+
{
12+
template: './index.html'
13+
}
14+
]
15+
}
16+
}

0 commit comments

Comments
 (0)