Skip to content

Commit c64ca1d

Browse files
darrenkidddplewis
authored andcommitted
Fix disappearing SERVER_RENDERING env var (#873)
1 parent 7e805e0 commit c64ca1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gulpfile.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ var PRESETS = {
2929
'react-native': ['@babel/preset-react'],
3030
};
3131
var PLUGINS = {
32-
'browser': [transformRuntime, '@babel/plugin-transform-flow-comments', '@babel/plugin-proposal-class-properties', 'inline-package-json', 'transform-inline-environment-variables'],
32+
'browser': [transformRuntime, '@babel/plugin-transform-flow-comments', '@babel/plugin-proposal-class-properties', 'inline-package-json',
33+
['transform-inline-environment-variables', {'exclude': ['SERVER_RENDERING']}]],
3334
'node': ['@babel/plugin-transform-flow-comments', 'inline-package-json', 'transform-inline-environment-variables'],
3435
'react-native': ['@babel/plugin-transform-flow-comments', 'inline-package-json', 'transform-inline-environment-variables'],
3536
};

0 commit comments

Comments
 (0)