Skip to content

Commit

Permalink
Merge pull request #1281 from kethinov/0.21.12
Browse files Browse the repository at this point in the history
0.21.12
  • Loading branch information
kethinov committed Jul 4, 2023
2 parents ca45a27 + 949f675 commit 9627700
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 83 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

- Put your changes here...

## 0.21.12

- Fixed isomorphic controllers bundler webpack bug in Windows.
- Various dependencies updated.

## 0.21.11

- Added a new `--build` CLI flag that will instruct Roosevelt to just build the build artifacts but not start the server.
Expand Down
2 changes: 1 addition & 1 deletion lib/isomorphicControllersFinder.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = app => {
for (const filePath of allFilePaths) {
const contents = fse.readFileSync(filePath.path, 'utf8')
if (contents.includes('.isoRequire(')) {
fileData += ' require(\'' + filePath.path.replace(app.get('params').appDir + path.sep, '') + '\')(router)\n'
fileData += ' require(\'' + (filePath.path.replace(app.get('params').appDir + path.sep, '')).replaceAll('\\', '\\\\') + '\')(router)\n'
}
}
fileData += '}'
Expand Down
160 changes: 81 additions & 79 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9627700

Please sign in to comment.