-
Notifications
You must be signed in to change notification settings - Fork 702
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump @clr/ui from 5.1.1 to 5.4.1 in /dashboard (#3042)
* Bump @clr/ui from 5.1.1 to 5.4.1 in /dashboard Bumps [@clr/ui](https://github.com/vmware/clarity) from 5.1.1 to 5.4.1. - [Release notes](https://github.com/vmware/clarity/releases) - [Commits](vmware-archive/clarity@v5.1.1...v5.4.1) --- updated-dependencies: - dependency-name: "@clr/ui" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update remaining cds/clr deps to the same version * Update remaining cds/clr deps to the same version * Manually copy files * Disable linting * Replace current workaround by another workaround * Disable lint in temp file * Add more context on the workaround * Add minor css fix Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Antonio Gamez Diaz <agamez@vmware.com>
- Loading branch information
1 parent
d93dc9f
commit 6810f96
Showing
4 changed files
with
103 additions
and
36 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,39 @@ | ||
/* eslint-disable */ | ||
"use strict"; | ||
|
||
const babelJest = require("babel-jest"); | ||
|
||
const hasJsxRuntime = (() => { | ||
if (process.env.DISABLE_NEW_JSX_TRANSFORM === "true") { | ||
return false; | ||
} | ||
|
||
try { | ||
require.resolve("react/jsx-runtime"); | ||
return true; | ||
} catch (e) { | ||
return false; | ||
} | ||
})(); | ||
|
||
module.exports = babelJest.createTransformer({ | ||
presets: [ | ||
[ | ||
require.resolve("babel-preset-react-app"), | ||
{ | ||
runtime: hasJsxRuntime ? "automatic" : "classic", | ||
// Temporary workaround until one of these issues get solved: | ||
// https://github.com/babel/babel/issues/13520 | ||
// https://github.com/facebook/create-react-app/issues/11159 | ||
// Note: | ||
// Flow is a static type checker, but we don't have any raw js files requiring it. | ||
// It is enabled by default, so we need to explicitly disable it because it is | ||
// causing some parsing errors when reading named imports like "import foo as as". | ||
// More context here: https://github.com/kubeapps/kubeapps/pull/3042#issuecomment-870053634 | ||
flow: false, | ||
}, | ||
], | ||
], | ||
babelrc: false, | ||
configFile: false, | ||
}); |
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