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

HARP-12728: Add support for webpack5 #1917

Merged
merged 9 commits into from
Dec 10, 2020
Merged

HARP-12728: Add support for webpack5 #1917

merged 9 commits into from
Dec 10, 2020

Conversation

robertoraggi
Copy link
Member

This change updates the webpack configurations to 5.2.0.

@nzjony nzjony force-pushed the HARP-12623 branch 5 times, most recently from f47d7b0 to 207e6c9 Compare October 29, 2020 09:23
@nzjony nzjony changed the title HARP-12623: Add support for webpack5 HARP-12728: Add support for webpack5 Oct 30, 2020
@nzjony nzjony marked this pull request as draft October 30, 2020 08:31
@nzjony
Copy link
Member

nzjony commented Oct 30, 2020

Converting to draft because there are still CI issues that need to be resolved before this can be submitted.

@nzjony nzjony assigned nzjony and unassigned nzjony Nov 6, 2020
@nzjony nzjony force-pushed the HARP-12623 branch 2 times, most recently from e2e2e2a to 824d738 Compare November 17, 2020 08:22
@nzjony nzjony self-assigned this Nov 17, 2020
@nzjony nzjony force-pushed the HARP-12623 branch 7 times, most recently from 9d3429d to 2a4579f Compare November 27, 2020 16:27
@atomicsulfate atomicsulfate force-pushed the HARP-12623 branch 3 times, most recently from 27f9a20 to 12319a3 Compare December 3, 2020 13:38
@codecov
Copy link

codecov bot commented Dec 3, 2020

Codecov Report

Merging #1917 (4f356e1) into master (ea94e5b) will increase coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1917      +/-   ##
==========================================
+ Coverage   66.14%   66.22%   +0.08%     
==========================================
  Files         294      294              
  Lines       26299    26299              
  Branches     5909     5909              
==========================================
+ Hits        17395    17417      +22     
+ Misses       8904     8882      -22     
Impacted Files Coverage Δ
...here/harp-mapview/lib/text/TextElementsRenderer.ts 69.62% <0.00%> (+0.48%) ⬆️
@here/harp-mapview/lib/MapView.ts 73.65% <0.00%> (+0.81%) ⬆️
@here/harp-mapview/lib/CameraMovementDetector.ts 92.95% <0.00%> (+11.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ea94e5b...2f8609a. Read the comment docs.

@atomicsulfate atomicsulfate force-pushed the HARP-12623 branch 6 times, most recently from bc1bc36 to 5ced4e9 Compare December 7, 2020 14:51
robertoraggi and others added 6 commits December 7, 2020 16:22
This change updates the webpack configurations to 5.2.0.

Signed-off-by: Roberto Raggi <roberto.raggi@here.com>
Signed-off-by: Jonathan Stichbury <2533428+nzjony@users.noreply.github.com>
Signed-off-by: Jonathan Stichbury <2533428+nzjony@users.noreply.github.com>
webpack-cli 4.1.0 has some issue with "webpack serve".
Webpack 5 does not include a polyfill for Node.js process.
process.env.NODE_ENV and any other environment variables must be define
using the EnvironmentPlugin.
process.platform is defined using the DefinePlugin.
They were failing in windows due to calls to process.cwd() done
by path module's path.relative() function.
@atomicsulfate atomicsulfate force-pushed the HARP-12623 branch 7 times, most recently from 6ec8871 to 9bbdf80 Compare December 8, 2020 18:05
- Workaround webpack 5 bug by prepending "./" to the webpack config file path,
see webpack/webpack#11643

- Add webpack cache to travis cached directories.
Move ts typechecking to separate process using ForkTsCheckerWebpackPlugin.
Version 4.3.0 was always adding "auto" path prefix to scripts in generated
html files.
@robertoraggi
Copy link
Member Author

looks good to me

@atomicsulfate atomicsulfate merged commit df73a5e into master Dec 10, 2020
@atomicsulfate atomicsulfate deleted the HARP-12623 branch December 10, 2020 08:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants