mirror of
https://github.com/Comfy-Org/desktop.git
synced 2026-11-04 23:47:43 +00:00
[PR #491] [MERGED] Convert repo from CommonJS to ES Modules #908
Labels
No labels
area: desktop-app
Bounty
bug
bug-cop:answered
bug-cop:response-received
component: installer
component: preload
custom node
dependencies
Design
documentation
duplicate
enhancement
expected
frontend
good first issue
installation
Low-Priority
performance
Planned
platform: cross-platform
platform: windows
Potential Bug
Potential Bug
pull-request
question
refactor
Release
stale
User Support
V1
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/desktop#908
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/desktop/pull/491
Author: @webfiltered
Created: 12/15/2024
Status: ✅ Merged
Merged: 12/16/2024
Merged by: @huchenlei
Base:
main← Head:esm📝 Commits (9)
0c10edeConvert package from CommonJS to ES Modulesf5e9b11Fix CommonJS files treated as ESM62b86b1Convert CommonJS scripts to ES modules8b2d5b8Fix type errors - missing node.js typesbbc23aeRemove unnecessary type assertionscfff980Fix broken imports45cb61eRename CommonJS build / test scripts to .cjse413f83Fix playwright using cjs require17deaa4Fix UV download script - ESM conversion error📊 Changes
21 files changed (+76 additions, -52 deletions)
View changed files
📝
builder-debug.config.ts(+1 -1)📝
jest.config.cjs(+0 -0)📝
package.json(+5 -4)📝
playwright.config.ts(+1 -1)📝
scripts/downloadFrontend.js(+7 -5)📝
scripts/downloadUV.js(+10 -8)➕
scripts/getPackage.js(+7 -0)📝
scripts/launchdev.js(+3 -3)📝
scripts/makeComfy.js(+4 -4)📝
scripts/preMake.cjs(+0 -0)📝
scripts/prepareTypes.js(+4 -6)📝
scripts/releaseTypes.js(+2 -2)📝
scripts/resetInstall.js(+5 -5)📝
scripts/todesktop/afterPack.cjs(+0 -0)📝
scripts/todesktop/beforeInstall.cjs(+0 -0)📝
scripts/updateFrontend.js(+2 -2)📝
src/main-process/appWindow.ts(+1 -1)📝
tsconfig.json(+1 -1)📝
vite.main.config.ts(+2 -4)📝
vite.preload.config.ts(+3 -3)...and 1 more files
📄 Description
preload.tsnow compiles topreload.cjs- this is a one-off special casecjsinstead ofespreMake.cjs, which remains as CommonJS - requirement of build process🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.