Skip to content

Commit

Permalink
Merge pull request #1329 from stof/read_as_string
Browse files Browse the repository at this point in the history
Read the controllers.json as string rather than Buffer
  • Loading branch information
stof authored Sep 6, 2024
2 parents 1d49c5d + 7760cea commit 5f7df38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WebpackConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ class WebpackConfig {
}

// Add configured entrypoints
const controllersData = JSON.parse(fs.readFileSync(controllerJsonPath));
const controllersData = JSON.parse(fs.readFileSync(controllerJsonPath, 'utf8'));
const rootDir = path.dirname(path.resolve(controllerJsonPath));

for (let name in controllersData.entrypoints) {
Expand Down

0 comments on commit 5f7df38

Please sign in to comment.