Skip to content

Commit dfe8bf0

Browse files
committed
fix(shared): Fix SyntaxError on non-module imports by dropping support for import.meta used in vite
1 parent b2b0131 commit dfe8bf0

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎packages/shared/src/utils/runtimeEnvironment.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ export const isDevelopmentEnvironment = (): boolean => {
44
// eslint-disable-next-line no-empty
55
} catch (err) {}
66

7-
try {
8-
// @ts-ignore
9-
return import.meta.env.DEV || import.meta.env.MODE === 'development';
10-
// eslint-disable-next-line no-empty
11-
} catch (err) {}
7+
// TODO: add support for import.meta.env.DEV that is being used by vite
128

139
return false;
1410
};

0 commit comments

Comments
 (0)