Skip to content

Commit

Permalink
Fix webpack config for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
saoudrizwan committed Aug 31, 2024
1 parent 6a0dcb3 commit aadd25f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webview-ui/scripts/build-react-no-split.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ const ModuleScopePlugin = require("react-dev-utils/ModuleScopePlugin")
const path = require("path")
const fs = require("fs")
// Get all files in the shared directory
const sharedDir = path.resolve(__dirname, "../../src/shared")
const sharedDir = path.resolve(__dirname, "..", "..", "src", "shared")

function getAllFiles(dir) {
let files = []
fs.readdirSync(dir).forEach((file) => {
const filePath = path.join(dir, file)
if (fs.statSync(filePath).isDirectory()) {
files = files.concat(getAllFiles(filePath))
} else {
const withoutExtension = filePath.split(".")[0]
const withoutExtension = path.join(dir, path.parse(file).name)
files.push(withoutExtension)
}
})
Expand Down

0 comments on commit aadd25f

Please sign in to comment.