Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Jan 9, 2024
1 parent e12cebd commit 82e109e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
node-version: '18.17.0'

- run: node --version
- run: npm --version

- run: npm ci

- run: npm test -- -u
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,12 @@ export function externalWasmLoader (options: externalWasmLoader.Options): rollup
} else if (config.shouldEmitAsset(options, id)) {
return emitAsset(this, filePath);
} else {
return await fs.readFile(filePath, 'utf8');
return (await fs.readFile(filePath, 'utf8')).replace(/\r\n/g, '\n');
}
}
}
// some external module that doesn't obey the suffix specification, we return its content by default.
return await fs.readFile(filePath, 'utf8');
return (await fs.readFile(filePath, 'utf8')).replace(/\r\n/g, '\n');
}
return null;
},
Expand Down

0 comments on commit 82e109e

Please sign in to comment.