Skip to content

Commit

Permalink
⚙ webpackで必要なpolyfillの設定を追加 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
3w36zj6 authored Nov 9, 2023
1 parent 0d4b063 commit c5c16ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
"eslint-plugin-promise": "^6.1.1",
"phaser": "^3.55.2",
"prettier": "^3.0.3",
"process": "^0.11.10",
"ts-loader": "^9.5.0",
"typescript": "^5.2.2",
"util": "^0.12.5",
"webpack": "^5.0.0-rc.6",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.8.1"
Expand Down
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 c5c16ac

Please sign in to comment.