Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade webpack v4 → v5 #1520

Merged
merged 17 commits into from
Dec 7, 2022
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = function babelConfig(api) {
"lodash"
];
if (api.env("development")) {
plugins.push("react-hot-loader/babel");
plugins.push(["react-hot-loader/babel", { safetyNet: false }]);
victorlin marked this conversation as resolved.
Show resolved Hide resolved
}
if (process.env.BABEL_INCLUDE_TIMING_FUNCTIONS === "false") {
plugins.push(["strip-function-call", {strip: ["timerStart", "timerEnd"]}]);
Expand Down
12 changes: 6 additions & 6 deletions bundlesize.config.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"files": [
{
"path": "./dist/auspice.bundle.*.js",
"maxSize": "2 kB"
"path": "./dist/auspice.main.bundle.*.js",
"maxSize": "3 kB"
},
{
"path": "./dist/auspice.chunk.+([0-9]).bundle.*.js",
"path": "./dist/auspice.?(chunk.)+([0-9]).bundle.*.js",
"maxSize": "100 kB"
},
{
"path": "./dist/auspice.chunk.core-vendors.bundle.*.js",
"path": "./dist/auspice.?(chunk.)core-vendors.bundle.*.js",
"maxSize": "220 kB"
},
{
"path": "./dist/auspice.chunk.other-vendors.bundle.*.js",
"path": "./dist/auspice.?(chunk.)other-vendors.bundle.*.js",
"maxSize": "150 kB"
},
{
"path": "./dist/auspice.chunk.locales.bundle.*.js",
"path": "./dist/auspice.?(chunk.)locales.bundle.*.js",
"maxSize": "100 kB"
}
]
Expand Down
2 changes: 1 addition & 1 deletion cli/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const getAuspiceBuild = () => {
cwd !== sourceDir &&
fs.existsSync(path.join(cwd, "index.html")) &&
fs.existsSync(path.join(cwd, "dist")) &&
fs.readdirSync(path.join(cwd, "dist")).filter((fn) => fn.match(/^auspice.bundle.[a-z0-9]+.js$/)).length === 1
fs.readdirSync(path.join(cwd, "dist")).filter((fn) => fn.match(/^auspice.main.bundle.[a-z0-9]+.js$/)).length === 1
victorlin marked this conversation as resolved.
Show resolved Hide resolved
) {
return {
message: "Serving the auspice build which exists in this directory.",
Expand Down
Loading