Skip to content

Commit 35c1349

Browse files
committed
fix: force commonjs module type when extracting @visibleAs* decorators
1 parent 2ea4df1 commit 35c1349

File tree

1 file changed

+1
-1
lines changed
  • editor/src/editor/layout/inspector/script

1 file changed

+1
-1
lines changed

editor/src/editor/layout/inspector/script/field.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export function InspectorScriptField(props: IInspectorScriptFieldProps) {
141141

142142
if (!cached || cached.time !== fStat.mtimeMs) {
143143
const temporaryDirectory = await ensureTemporaryDirectoryExists(projectConfiguration.path);
144-
const outputAbsolutePath = join(temporaryDirectory, "scripts", `${props.script.key.replace(/\//g, "_")}.js`);
144+
const outputAbsolutePath = join(temporaryDirectory, "scripts", `${props.script.key.replace(/\//g, "_")}.cjs`);
145145

146146
const compilationSuccess = await executeSimpleWorker<{ success: boolean; error?: string }>("workers/script.js", {
147147
action: "compile",

0 commit comments

Comments
 (0)