Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Upgrading to webpack 4.x #773

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WrathOfZombies
Copy link
Contributor

This pull request upgrades webpack to 4.x. It's currently in a partially working state.

@WrathOfZombies WrathOfZombies requested review from Zlatkovsky and nico-bellante and removed request for Zlatkovsky April 10, 2018 19:26
@WrathOfZombies WrathOfZombies self-assigned this Apr 10, 2018
Copy link
Member

@Zlatkovsky Zlatkovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bhargav, first of all, thank you very much for doing this!

I left a few comments, in particular re. two lines that were commented out, which I think will have adverse effects. Other than that, looks great!

@nico-bellante , please test this locally as well (and maybe try re-adding the two commented-out lines, and seeing what happens).

Thanks again, Bhargav!

exports.build = build;
exports.config = config;
exports.safeExternalUrls = safeExternalUrls;
exports.localStorageKeys = localStorageKeys;
exports.sessionStorageKeys = sessionStorageKeys;
exports.experimentationFlagsDefaults = experimentationFlagsDefaults;
exports.RedirectPlugin = RedirectPlugin;
// exports.RedirectPlugin = RedirectPlugin;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why commented out? We need it to be able to switch between alpha/beta/prod...

}

exports.getVersionedPackageNames = getVersionedPackageNames;
exports.VersionedPackageSubstitutionsPlugin = VersionedPackageSubstitutionsPlugin;
// exports.VersionedPackageSubstitutionsPlugin = VersionedPackageSubstitutionsPlugin;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likewise, is needed for a few of the pages (TryIt and CustomFunctionsDashboard)

@@ -114,44 +114,43 @@
"@types/js-yaml": "3.5.29",
"@types/lodash": "4.14.58",
"@types/mime": "0.0.29",
"@types/node": "7.0.12",
"@types/node": "^9.6.2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should you change the package.json node dependency as well? Right now it says
"node": ">=6.9.4

"shelljs": "0.7.7",
"style-loader": "0.16.1",
"style-loader": "^0.20.3",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Someday you'll have to explain to me the usage of "^" -- in particular, the safety thereof (and also, how does that work from a complience/OSS perspective)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants