Skip to content

Commit

Permalink
trim content of entry points
Browse files Browse the repository at this point in the history
  • Loading branch information
indooorsman committed Mar 23, 2022
1 parent 7f138b5 commit 7a92fa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const getBuildId = (build) => {
const entryContents = entries
.map((p) => {
const absPath = path.isAbsolute(p) ? p : path.resolve(buildRoot, p);
return readFileSync(absPath, { encoding: 'utf8' });
return readFileSync(absPath, { encoding: 'utf8' }).trim();
})
.join('');
return createHash('sha256').update(entryContents).digest('hex');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "esbuild-css-modules-plugin",
"version": "2.2.8",
"version": "2.2.9",
"description": "A esbuild plugin to bundle css modules into js(x)/ts(x).",
"main": "index.js",
"keywords": [
Expand Down

0 comments on commit 7a92fa5

Please sign in to comment.