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

Webpack 5 #11201

Merged
merged 35 commits into from
Aug 4, 2021
Merged

Webpack 5 #11201

merged 35 commits into from
Aug 4, 2021

Commits on May 28, 2021

  1. [WP5] Webpack5 update (#10961)

    * Revert "Revert "Update postcss packages" (#10216)"
    
    This reverts commit 3968923.
    
    * Revert "Update postcss packages" (#10216)
    
    This reverts commit 580ed5d.
    
    * Update postcss and loader
    
    * Update fork-ts-checker-webpack-plugin@5.2.1
    
    References:
    * [hook rename](TypeStrong/fork-ts-checker-webpack-plugin#490)
    * [include/exclude](TypeStrong/fork-ts-checker-webpack-plugin#450) and [issue options](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#issues-options)
    * [release notes 5.0.0](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/releases/tag/v5.0.0)
    
    * Update fork-ts-checker-webpack-plugin 6.0.5
    
    * Add css-minimizer-webpack-plugin@1.1.5 remove
    
    Add css-minimizer-webpack-plugin@1.1.5
    Remove optimize-css-assets-webpack-plugin and postcss-safe-parser
    
    References:
    * https://webpack.js.org/plugins/css-minimizer-webpack-plugin/
    
    * Add support for Webpack 5 message objects
    
    * Update WebpackManifestPlugin to v3.0.0
    
    * Support both "SingleEntryPlugin" and "EntryPlugin"
    
    * Support Webpack 5 IgnorePlugin signature
    
    Reference:
    * https://webpack.js.org/plugins/ignore-plugin/#example-of-ignoring-moment-locales
    * #10006
    
    * Update webpack and dev server
    
    * Enable persistent cache
    
    * Fix react-error-overlay webpack
    
    * Fix dev server config
    
    * Remove support for SingleEntryPlugin
    
    * update workbox-webpack-plugin
    
    * Fix post css config
    
    * Comment out WebpackManifestPlugin for now having issues with undefined path
    
    * Add fast refresh entries to ModuleScopePlugin
    
    * Format files
    
    * Remove unused variables in start command
    
    * git ignore tsconfig.tsbuildinfo
    supporting incremental typescript builds
    
    * simplify output path
    
    review feedback from @kumarlachhani
    
    * Use asset modules in react-scripts
    
    * Use asset modules in react-error-overlay
    
    * eslint-config-react-app typo fix (#10317)
    
    This just fixes a shell snippet in the readme file for this plugin
    
    * Fix link address (#10907)
    
    Replace the Github home link with a link to the repo's main page or a link to the source (https://github.com/CodeByZach/pace/blob/master/pace.js)
    
    * Bump immer version for fixing security issue (#10791)
    
    Bump immer minor version to fix `Prototype Pollution` Security issue.
    
    * test(create-react-app): add integration tests (#10381)
    
    * Revert "Use asset modules in react-error-overlay"
    
    This reverts commit 952f896.
    
    * Disable broken tests for now
    
    * Revert source-map bump in react-error-overlay
    
    * JSON is using default export
    
    * Webpack config: Remove invalid parser configuration
    
    * Fix issue with ModuleScope and babel runtime
    
    * Fix svgr configuration
    
    * Webpack config svg use file-loader instead of url-loader
    
    * Update postcss-normalize
    
    * Fix asset output name
    
    * Update test matrix using node 12+14
    
    postcss normalize only support node >=12
    
    * Fix file output extension
    
    * Align assetModuleFilename
    
    * pipeline update configuration names
    
    * Add back webpack-manifest-plugin
    
    * Fix kitchen sink get actual href value
    
    .href is prefixed with http://localhost etc.
    
    * Update kitchen sink test to webpack 5 asset modules
    
    * Let webpack handle global this
    
    * Fix eject copy config/webpack/persistentCache folder
    
    * Move tsbuildinfo into cache folder
    
    * Update dependencies
    
    * Update webpack-dev-server to beta.3
    
    * Compilation.modules changed to type Set
    
    reference: comment by @slorber #9994 (comment)
    
    * Format JsonInclusion.js using prettier
    
    * Run prettier on webpack dev server config
    
    * Enable e2e behavior tests using node 12+14
    
    * Comment out e2e behavior tests for now
    
    * Add experimental support for module federation
    
    * Fix missing wds socket path update
    
    accordingly to review by @xiaokekeT
    
    * Revert "Add experimental support for module federation"
    
    This reverts commit 8fdc63b.
    
    Co-authored-by: Ian Schmitz <ianschmitz@gmail.com>
    Co-authored-by: jasonwilliams <jase.williams@gmail.com>
    Co-authored-by: Joseph Atkins-Turkish <spacerat3004@gmail.com>
    Co-authored-by: e-w-h <46170930+e-w-h@users.noreply.github.com>
    Co-authored-by: Shamprasad RH <shamprasad.rh@mail.weir>
    Co-authored-by: James George <jamesgeorge998001@gmail.com>
    7 people committed May 28, 2021
    1 Configuration menu
    Copy the full SHA
    aaddb29 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2021

  1. Update Webpack dependencies and fix minor issues (#11170)

    Morten N.O. Nørgaard Henriksen committed Jul 12, 2021
    Configuration menu
    Copy the full SHA
    da654e6 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2021

  1. Merge branch 'main' into wp5

    Morten N.O. Nørgaard Henriksen authored and Morten N.O. Nørgaard Henriksen committed Jul 15, 2021
    Configuration menu
    Copy the full SHA
    6d3dbed View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into wp5

    Morten N.O. Nørgaard Henriksen authored and Morten N.O. Nørgaard Henriksen committed Jul 15, 2021
    Configuration menu
    Copy the full SHA
    0a7b095 View commit details
    Browse the repository at this point in the history
  3. Remove package-lock file

    prevent yarn warnings
    Morten N.O. Nørgaard Henriksen authored and Morten N.O. Nørgaard Henriksen committed Jul 15, 2021
    Configuration menu
    Copy the full SHA
    44c6958 View commit details
    Browse the repository at this point in the history
  4. Drop node 10 and 12, add 16

    Morten N.O. Nørgaard Henriksen authored and Morten N.O. Nørgaard Henriksen committed Jul 15, 2021
    Configuration menu
    Copy the full SHA
    faf8b66 View commit details
    Browse the repository at this point in the history
  5. Remove dependency check for babel-eslint

    Morten N.O. Nørgaard Henriksen authored and Morten N.O. Nørgaard Henriksen committed Jul 15, 2021
    Configuration menu
    Copy the full SHA
    b213cf3 View commit details
    Browse the repository at this point in the history
  6. Use md5 for the environment config webpack 5 cache invalidation hash

    Morten N.O. Nørgaard Henriksen authored and Morten N.O. Nørgaard Henriksen committed Jul 15, 2021
    Configuration menu
    Copy the full SHA
    b5caccf View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2021

  1. compile lockfile

    Morten N.O. Nørgaard Henriksen authored and Morten N.O. Nørgaard Henriksen committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    f8e0fdb View commit details
    Browse the repository at this point in the history
  2. Bump @babel/eslint-parser to 7.14.7

    Morten N.O. Henriksen committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    b41322a View commit details
    Browse the repository at this point in the history
  3. Fix missing @babel/eslint-parser dev dependency

    Morten N.O. Henriksen committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    0508303 View commit details
    Browse the repository at this point in the history
  4. ModuleScopePlugin ignore @babel/runtime/helpers/esm/assertThisInitial…

    …ized
    
    Would be great with wildcard support in ModuleScopePlugin
    Morten N.O. Henriksen committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    18045c0 View commit details
    Browse the repository at this point in the history
  5. Move azurepipelines to ubuntu-latest

    Warning: Ubuntu 16.04 LTS environment is deprecated and will be removed on September 20, 2021. Migrate to ubuntu-latest instead. For more details, see actions/runner-images#3287
    Morten N.O. Henriksen committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    af889e1 View commit details
    Browse the repository at this point in the history
  6. Webpack config remove requireEnsure

    this should be the default already in webpack 5 - to enable require ensure use https://webpack.js.org/plugins/internal-plugins/#requireensureplugin
    Morten N.O. Henriksen committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    2d3639c View commit details
    Browse the repository at this point in the history
  7. ModuleScopePlugin ignore @babel/runtime/regenerator

    Morten N.O. Henriksen committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    a7b4b6e View commit details
    Browse the repository at this point in the history
  8. Update node-sass from v4 to v6 in fixtures

    On v4.14.1 linux tests failed: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime
    Morten N.O. Henriksen committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    c3abea1 View commit details
    Browse the repository at this point in the history
  9. Update eslint to 7.30.0

    Morten N.O. Henriksen committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    7130cdf View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2021

  1. Fix eslint shareable config using rushstack/eslint-patch

    Morten N.O. Henriksen committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    6e10091 View commit details
    Browse the repository at this point in the history
  2. Format eslint patch using prettier

    Morten N.O. Henriksen committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    a2df30e View commit details
    Browse the repository at this point in the history
  3. Remove rest of TSC_COMPILE_ON_ERROR

    This is a breaking change in the webpack 5 update
    Morten N.O. Henriksen committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    0674cd7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    09cb3d2 View commit details
    Browse the repository at this point in the history
  5. Revert "Remove rest of TSC_COMPILE_ON_ERROR"

    This reverts commit 0674cd7.
    Morten N.O. Henriksen committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    5bf34cd View commit details
    Browse the repository at this point in the history
  6. Add ForkTsCheckerWarningWebpackPlugin to support TSC_COMPILE_ON_ERROR

    Morten N.O. Henriksen committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    8cf9f02 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2021

  1. Update css-loader, mini-css-extract-plugin, webpack-dev-server

    Morten N.O. Henriksen committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    892844e View commit details
    Browse the repository at this point in the history
  2. Convert compileType to module in missing css-loaders

    Morten N.O. Henriksen committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    a717786 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2021

  1. Use webpack hot client and error overlay

    Currently a formatting issue in the overlay, ref: webpack/webpack-dev-server#3575
    Morten N.O. Henriksen committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    5a9d460 View commit details
    Browse the repository at this point in the history
  2. Eslint preset move patch to base

    Morten N.O. Henriksen committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    fea0a69 View commit details
    Browse the repository at this point in the history
  3. Fix eslint apply patch in jest config

    Morten N.O. Henriksen committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    a23e653 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2021

  1. Update missing node checks and references to +14

    Credit @iansu #11253
    Morten N.O. Henriksen committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    34326df View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2021

  1. Replace CaseSensitivePathsPlugin with eslint import rule

    Doing this should improve performance, ref: #11201 (review)
    Morten N.O. Henriksen committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    a2c859a View commit details
    Browse the repository at this point in the history
  2. Fix react-error-overlay lint issue

    Morten N.O. Henriksen committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    908b3c1 View commit details
    Browse the repository at this point in the history
  3. Ignore react-error-overlay lint issue

    Morten N.O. Henriksen committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    2c77dd7 View commit details
    Browse the repository at this point in the history
  4. Revert "Ignore react-error-overlay lint issue"

    This reverts commit 2c77dd7.
    Morten N.O. Henriksen committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    51eb804 View commit details
    Browse the repository at this point in the history
  5. Revert "Fix react-error-overlay lint issue"

    This reverts commit 908b3c1.
    Morten N.O. Henriksen committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    f9784bf View commit details
    Browse the repository at this point in the history
  6. Revert "Replace CaseSensitivePathsPlugin with eslint import rule"

    This reverts commit a2c859a.
    Morten N.O. Henriksen committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    a702d6a View commit details
    Browse the repository at this point in the history