Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Aug 22, 2023
1 parent 11a570f commit 182342b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 1.2.0 (tbd)

- Fixed issue with `loader-utils` version
- Fixed build issue in codegen of `piral-core` on Windows (#619)
- Updated `importmap` with `exclude` key allowing exclusions
- Added support for `dependencySymbols` in `piral-blazor`

Expand Down
4 changes: 3 additions & 1 deletion src/framework/piral-core/src/tools/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ function getIdentifiers(root: string, packageName: string) {
function getModulePathOrDefault(root: string, origin: string, name: string) {
try {
const absPath = getModulePath(root, name);
const path = relative(origin, absPath);
const relPath = relative(origin, absPath);
// fixes relative paths on Windows OS - should use forward slash
const path = relPath.split('\\').join('/');
return path;
} catch {
return name;
Expand Down

0 comments on commit 182342b

Please sign in to comment.