Skip to content

Commit

Permalink
⚙ Rspackのbuiltins.definerspack.DefinePluginに移行 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
3w36zj6 authored Dec 13, 2023
1 parent 94b5b27 commit 07da9a5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions rspack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,12 @@ const config = {
],
},
devServer: { static: { directory: "./dist/" } },
builtins: {
define: {
plugins: [
new rspack.DefinePlugin({
"process.env.SERVER_URL": JSON.stringify(process.env.SERVER_URL),
"process.env.BUILD_DATE": JSON.stringify(buildDate),
"process.env.CREDITS": JSON.stringify(process.env.CREDITS),
},
},
plugins: [
}),
new rspack.ProvidePlugin({
process: [require.resolve("process/browser")],
}),
Expand Down

0 comments on commit 07da9a5

Please sign in to comment.