diff options
| author | Fuwn <[email protected]> | 2022-03-20 01:28:42 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-20 01:28:42 -0700 |
| commit | 03f2c8e35ba70c9d9496fd5ad5403520f7ebdc53 (patch) | |
| tree | 568e508aff6db6325719abcb2c601520264c5de4 /webpack.config.js | |
| download | graphql-api-03f2c8e35ba70c9d9496fd5ad5403520f7ebdc53.tar.xz graphql-api-03f2c8e35ba70c9d9496fd5ad5403520f7ebdc53.zip | |
feat: 0.1.0 :star:
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..61a88a0 --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,19 @@ +const path = require("path"); + +module.exports = { + context: path.resolve(__dirname, "./"), + target: "webworker", + mode: "production", + optimization: { + usedExports: true, + }, + module: { + rules: [ + { + include: /node_modules/, + test: /\.mjs$/, + type: "javascript/auto", + }, + ], + }, +}; |