forked from elastic/eui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Platform] Upgrade to webpack 5 (elastic#6193)
* Upgrade to webpack 5, converted enough to make the docs run * refactored port selection in webpack config * Update watcher logic in react-docgen-typescript * removed file-loader * Updated prop-loader to process up file changes * further webpack.config.js cleanup * update themes/charts/webpackage.config.js * Upgrade to webpack 5, converted enough to make the docs run * refactored port selection in webpack config * removed file-loader * updated yarn.lock * Make cypress happy with webpack 5 * gave eslint its own webpack config just for resolving * Remove file-loader from cypress webpack config
- Loading branch information
1 parent
1e90096
commit e11f280
Showing
11 changed files
with
1,730 additions
and
1,489 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const path = require('path'); | ||
|
||
const webpackConfig = { | ||
resolve: { | ||
extensions: ['.ts', '.tsx', '.js', '.json'], | ||
}, | ||
|
||
resolveLoader: { | ||
alias: { | ||
'prop-loader': path.resolve( | ||
__dirname, | ||
'../scripts/loaders/prop-loader.js' | ||
), | ||
}, | ||
}, | ||
}; | ||
|
||
module.exports = webpackConfig; |
This file contains 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 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 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 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 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 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.