Skip to content

Commit 04230ef

Browse files
committed
fix: stop activation spinner after bundle activation in activateBundle
1 parent 45475f3 commit 04230ef

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/contentful--app-scripts/src/activate/activate-bundle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ export async function activateBundle({
6565
currentDefinition
6666
);
6767
} catch (err: any) {
68-
activationSpinner.stop();
69-
7068
let errorData: any;
7169
try {
7270
errorData = JSON.parse(err.message);
@@ -106,6 +104,8 @@ export async function activateBundle({
106104
err,
107105
'Something went wrong activating your bundle. Make sure you used the correct definition-id.'
108106
);
107+
} finally {
108+
activationSpinner.stop();
109109
}
110110

111111
console.log(`

packages/contentful--app-scripts/src/build-functions/build-functions.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ export const resolveEsBuildConfig = (
121121
outdir: 'build',
122122
format: 'esm',
123123
target: 'es2022',
124-
// platform: 'node',
125-
// target: ['node20'],
126124
minify: options.minify ?? true,
127125
define: {
128126
global: 'globalThis',

0 commit comments

Comments
 (0)