-
Notifications
You must be signed in to change notification settings - Fork 398
Webpack 5 upgrade #7351
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
Merged
Webpack 5 upgrade #7351
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
055f80e
Initial changes for webpack 5 upgrade.
na9da 24432ee
Migrate to modern SASS api.
na9da 5bf5b22
Convert spec fixtures imports to valid ESM style.
na9da 8ce997a
Convert asset imports to valid ESM style.
na9da ed0ddbd
Remove nullish checks.
na9da 1ec85e7
Update parameters.
na9da ceced0c
Update .babelrc.
na9da 3edacc0
Add types for csv, dac and xml imports.
na9da 018a6aa
Use webpack5 version of tiff imagery provider.
na9da 913b35e
Temporarily use webpack5 branch for CI.
na9da f9c6a68
Disable lint temporarily until we fix the import problem.
na9da 56f96b3
Prettier scss files.
na9da d3736be
Remove cesium debug pragma from dev mode (for now).
na9da 212044f
Rewrite search provider specs to not depend on CJS module feature.
na9da 18609cf
Fix SASS import for timeline component.
na9da 95d9bb2
Fix tools build script.
na9da 3d63532
Update terriajs-tiff-imagery-provider.
na9da 7ce0d00
Fix TIFF imagery provider import.
na9da 02309d0
Replace require() for images with import.
na9da 77cf215
Replace asset require() in lib with import.
na9da 0de2466
Convert remaining require() in specs to import.
na9da 2e60b04
Merge remote-tracking branch 'origin/main' into webpack5
zoran995 23f8a29
update yarn.lock
zoran995 672c043
uninstall removed babel plugins
zoran995 5ea136c
remove terser-webpack-plugin resolution
zoran995 e083423
change default token message
zoran995 30a1e4f
reorder entries in package.json
zoran995 7d6051e
bump fork-ts-checker webpack plugins
zoran995 c9b7816
bump copy-webpack-plugin
zoran995 a410a2a
remove @types/webpack as it is now published by webpack in v5
zoran995 c6c82b7
remove istanbul-instrumenter-loader as unused dependency
zoran995 99c1e5b
pass correct dev mode param to webpack config
zoran995 abefbe0
remove unused scss classes
zoran995 583ab55
use already resolve cesiumDir path
zoran995 0d9ee28
remove sideeffects: false from package.json
zoran995 216787d
fix protomaps import warning
zoran995 2eebf40
fix protomap build issue
zoran995 32cbd31
convert polyfill.js to esm
zoran995 d7c44eb
feat: restore worker-loader
zoran995 5dc73d4
Upgrade to terriajs-cesium 8.0.2.
na9da b2f845b
Set node engine version to match nvmrc.
na9da 375f6f4
Upgrade min node engine version to > 20.x.
na9da 6bf71b0
Update eslint version.
na9da 37a99e9
Update terriajs-cesium-widgets.
na9da 5994753
Remove polyfill.js.
na9da 055923e
Remove unused dependency.
na9da 2a1cae0
Update CHANGES.md.
na9da 0d74644
Prettier fix.
na9da 86a5722
Formatting fix.
na9da File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -11,13 +11,8 @@ | |
| ["@babel/typescript", { "allowNamespaces": true }] | ||
| ], | ||
| "plugins": [ | ||
| "@babel/plugin-transform-modules-commonjs", | ||
| ["@babel/plugin-proposal-decorators", { "legacy": true }], | ||
| "@babel/plugin-proposal-class-properties", | ||
| "@babel/proposal-object-rest-spread", | ||
| "babel-plugin-styled-components", | ||
| "@babel/plugin-syntax-dynamic-import", | ||
| "babel-plugin-lodash" | ||
| "babel-plugin-styled-components" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure where this comment fits, but commit dfaf253 added a Should some things be removed from that file as well? |
||
| ], | ||
| "assumptions": { | ||
| "setPublicClassFields": false | ||
|
|
||
This file contains hidden or 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 +1 @@ | ||
| v18.19.1 | ||
| v20.18.3 |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there anything else controlling babel plugins in the tree, or should the removed babel plugins also be removed from
package.json/yarn.lock?Edit: (I think removing these plugins from
package.json/yarn.lockwould remove a bunch of warnings, and possibly also remove something fromyarn auditso I would love that.)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to make it easier pjonsson is referring to
@babel/plugin-proposal-class-properties@babel/plugin-proposal-nullish-coalescing-operator@babel/plugin-proposal-object-rest-spread@babel/plugin-proposal-optional-chainingbabel/plugin-syntax-dynamic-import