Skip to content

Commit

Permalink
Remove workaround for patternfly react topology during build
Browse files Browse the repository at this point in the history
fixes #497

Signed-off-by: Aurélien Pupier <[email protected]>
  • Loading branch information
apupier committed Mar 7, 2024
1 parent 293d889 commit 0df1885
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 320 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@
"npm-link-shared": "^0.5.6",
"os-browserify": "^0.3.0",
"path-browserify": "^1.0.1",
"remove-files-webpack-plugin": "^1.5.0",
"rimraf": "^5.0.5",
"sass": "^1.71.1",
"sass-loader": "^13.0.2",
Expand Down
14 changes: 1 addition & 13 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const { merge } = require('webpack-merge');
const CopyPlugin = require('copy-webpack-plugin');
const RemovePlugin = require('remove-files-webpack-plugin');
const path = require('path');
function posixPath(pathStr) {
return pathStr.split(path.sep).join(path.posix.sep);
Expand Down Expand Up @@ -130,18 +129,7 @@ const commonConfig = (env) => {
to: 'webview/editors/kaoto/camel-catalog',
},
]
}),
new RemovePlugin({
before: {
// Workaround to https://github.com/patternfly/react-topology/issues/118
include: [
'node_modules/@patternfly/react-topology/dist/esm/css/index.ts',
// next lines are used when doing development with main branch of Kaoto next
'./../kaoto-next/node_modules/@patternfly/react-topology/dist/esm/css/index.ts'
],
allowRootAndOutside: true
}
})
})
],
externals: {
vscode: "commonjs vscode",
Expand Down
Loading

0 comments on commit 0df1885

Please sign in to comment.