forked from krakenjs/zoid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.js
More file actions
26 lines (22 loc) · 698 Bytes
/
Copy pathglobals.js
File metadata and controls
26 lines (22 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* @flow */
/* eslint import/no-commonjs: off */
const postRobotGlobals = require('post-robot/globals');
const pkg = require('./package.json');
const formatVersion = (version) => {
return version.replace(/[^\d]+/g, '_');
};
module.exports = {
__POST_ROBOT__: {
...postRobotGlobals.__POST_ROBOT__,
__AUTO_SETUP__: false
},
__ZOID__: {
__VERSION__: formatVersion(pkg.version),
__GLOBAL_KEY__: `__zoid_${ formatVersion(pkg.version) }__`,
__IFRAME_SUPPORT__: true,
__POPUP_SUPPORT__: true,
__FRAMEWORK_SUPPORT__: false,
__DEFAULT_CONTAINER__: true,
__DEFAULT_PRERENDER__: true
}
};