diff --git a/code/core/src/builder-manager/utils/managerEntries.ts b/code/core/src/builder-manager/utils/managerEntries.ts index 787116d05c0e..9609c94f40ab 100644 --- a/code/core/src/builder-manager/utils/managerEntries.ts +++ b/code/core/src/builder-manager/utils/managerEntries.ts @@ -60,7 +60,8 @@ export async function wrapManagerEntries(entrypoints: string[], uniqueId?: strin const directory = dirname(location); await mkdir(directory, { recursive: true }); } - await writeFile(location, `import '${slash(entry)}';`); + + await writeFile(location, `import '${slash(entry).replaceAll(/'/g, "\\'")}';`); return location; })