Skip to content

Commit 5d56a48

Browse files
committed
builtins.definerspack.DefinePluginに移行
1 parent 94b5b27 commit 5d56a48

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

rspack.config.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ const config = {
2828
],
2929
},
3030
devServer: { static: { directory: "./dist/" } },
31-
builtins: {
32-
define: {
31+
plugins: [
32+
new rspack.DefinePlugin({
3333
"process.env.SERVER_URL": JSON.stringify(process.env.SERVER_URL),
3434
"process.env.BUILD_DATE": JSON.stringify(buildDate),
3535
"process.env.CREDITS": JSON.stringify(process.env.CREDITS),
36-
},
37-
},
38-
plugins: [
36+
}),
3937
new rspack.ProvidePlugin({
4038
process: [require.resolve("process/browser")],
4139
}),

0 commit comments

Comments
 (0)