Skip to content

Commit

Permalink
必要なpolyfilを設定に追加
Browse files Browse the repository at this point in the history
  • Loading branch information
3w36zj6 committed Nov 9, 2023
1 parent b463794 commit 91749b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ module.exports = {
},
resolve: {
extensions: [".ts", ".js"],
fallback: { util: require.resolve("util/") },
},
plugins: [
new webpack.ProvidePlugin({
process: "process/browser",
}),
new webpack.DefinePlugin({
"process.env.SERVER_URL": JSON.stringify(process.env.SERVER_URL),
"process.env.BUILD_DATE": JSON.stringify(buildDate),
Expand Down

0 comments on commit 91749b7

Please sign in to comment.