Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down Expand Up @@ -54,8 +54,8 @@ jobs:
- name: Publish to npm
run: npm publish

- name: Push commit and tag
run: git push origin main --follow-tags
- name: Push tag
run: git push origin v${{ inputs.version }}

- name: Create GitHub Release
run: gh release create v${{ inputs.version }} --title "v${{ inputs.version }}" --generate-notes
Expand Down
9 changes: 5 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,11 @@ export function ecij({
// Ensure JS modules with CSS extractions are included,
// otherwise they may be tree-shaken away if
// all their exports are evaluated away
if (parsedFileInfoCache.has(id)) {
if (parsedFileInfoCache.get(id)!.declarations.length !== 0) {
return id;
}
if (
parsedFileInfoCache.has(id) &&
parsedFileInfoCache.get(id)!.declarations.length !== 0
) {
return id;
}

return null;
Expand Down