-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify by eliminating the
global
object
- Loading branch information
1 parent
6bf0f46
commit 104d977
Showing
6 changed files
with
24 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
/* eslint-disable no-undef, @typescript-eslint/no-var-requires */ | ||
const GasPlugin = require("gas-webpack-plugin"); | ||
|
||
const entry = "./build/index.js"; | ||
|
||
module.exports = { | ||
mode: "production", | ||
// we always use dev mode because bundle size is unimportant - code runs server-side | ||
mode: "development", | ||
context: __dirname, | ||
entry: "./build/index.js", | ||
entry, | ||
output: { | ||
path: __dirname, | ||
filename: "Code.js", | ||
}, | ||
plugins: [new GasPlugin()], | ||
plugins: [ | ||
new GasPlugin({ | ||
autoGlobalExportsFiles: [entry], | ||
}), | ||
], | ||
devtool: false, | ||
}; |