Skip to content

Commit 73d1e29

Browse files
committed
fix(client): hotfix for Babel bug
1 parent 80ca119 commit 73d1e29

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: templates/app/client/app/app.constants.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
export * from '../../server/config/environment/shared';
1+
<% if(filters.ts) { %>export * from '../../server/config/environment/shared';<% } else { %>
2+
// https://github.com/babel/babel/issues/2877
3+
import * as shared from '../../server/config/environment/shared';
4+
5+
export const env = shared.env;
6+
export const port = shared.port;
7+
export const userRoles = shared.userRoles;<% } %>

0 commit comments

Comments
 (0)