-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update packages and TopNav [no chat-gpt link due to the error]
- Loading branch information
Showing
7 changed files
with
1,650 additions
and
1,393 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v14.15.0 | ||
v14.21.3 |
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,32 @@ | ||
module.exports = function override(config, env) { | ||
const babelLoaderFilter = rule => { | ||
return rule.loader && rule.loader.includes('babel-loader'); | ||
}; | ||
|
||
// get the babel loader | ||
const babelLoader = config.module.rules.find(babelLoaderFilter); | ||
|
||
if (!babelLoader) { | ||
// find the array of rules from oneOf property | ||
const rules = config.module.rules.find(rule => Boolean(rule.oneOf)).oneOf; | ||
|
||
// find the babel loader within these rules | ||
const babelRule = rules.find(babelLoaderFilter); | ||
|
||
if (babelRule) { | ||
// Modify it to add the decorators plugin | ||
babelRule.options.plugins = [ | ||
...babelRule.options.plugins, | ||
["@babel/plugin-proposal-decorators", { "legacy": true }] | ||
]; | ||
} | ||
} else { | ||
// Modify the top level loader if it exists | ||
babelLoader.options.plugins = [ | ||
...babelLoader.options.plugins, | ||
["@babel/plugin-proposal-decorators", { "legacy": true }] | ||
]; | ||
} | ||
|
||
return config; | ||
}; |
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.