Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Update to Webpack 5 #875

Closed
wants to merge 58 commits into from
Closed

Update to Webpack 5 #875

wants to merge 58 commits into from

Conversation

Marc-Andre-Rivet
Copy link
Contributor

@Marc-Andre-Rivet Marc-Andre-Rivet commented Mar 6, 2021

Depends on plotly/dash#1563

Updates the table "build" to use Webpack 5 and newer versions of the toolchain packages (e.g. babel, typescript, loaders).

These changes also cause problems that are more or less difficult to fix:

  • Storybook, which we use here to generate the Percy snapshots hooks into the webpack configuration and expects Webpack 4.x -- some changes in tooling is done here to make it work with webpack 5

  • Cypress has been in a derelict state for our purpose for quite a while and this Webpack 5 update is causing problems that can't be fixed (as far as I can tell) in the unit tests -- this PR moves the unit tests from using Cypress to another stack that has been around for a lot of time and is very stable.. Karma + Mocha, since the cypress test syntax already was compatible with Mocha, it left only the runner to be updated. For context, mocha tests are normally run directly in Node which won't do for our purposes, Karma is used, amongst other things, to load the tests into the browser to be run there. Additional context, Karma has been around for a very long time (it's ancient by web development standards, ~2012), this will hopefully provide more solid footing for the unit tests

  • More on Cypress, back in 2018 I introduced Cypress into the table stack to run integration tests as our Selenium setup was less than ideal at the time, this has proven problematic ever since Cypress 4.x came out. Will look to rewrite the remaining Cypress integration tests as Selenium as part of this PR

All-in-all this PR proposes to update the table toolchain in depth as part of keeping up with our third party dependencies as the ever growing gap has now reached chasm proportions... one must not fear the reaper.

- update configuration from webpack 4 -> 5
@Marc-Andre-Rivet Marc-Andre-Rivet changed the title Update table build to use Webpack 5 Update dependencies Mar 7, 2021
@Marc-Andre-Rivet Marc-Andre-Rivet changed the title Update dependencies Update to Webpack 5 Mar 7, 2021
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.

1 participant