Skip to content

Commit 7a92fa5

Browse files
committed
trim content of entry points
1 parent 7f138b5 commit 7a92fa5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const getBuildId = (build) => {
121121
const entryContents = entries
122122
.map((p) => {
123123
const absPath = path.isAbsolute(p) ? p : path.resolve(buildRoot, p);
124-
return readFileSync(absPath, { encoding: 'utf8' });
124+
return readFileSync(absPath, { encoding: 'utf8' }).trim();
125125
})
126126
.join('');
127127
return createHash('sha256').update(entryContents).digest('hex');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "esbuild-css-modules-plugin",
3-
"version": "2.2.8",
3+
"version": "2.2.9",
44
"description": "A esbuild plugin to bundle css modules into js(x)/ts(x).",
55
"main": "index.js",
66
"keywords": [

0 commit comments

Comments
 (0)