Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* @flow */
/* eslint import/no-nodejs-modules: off, import/no-default-export: off, import/default: off */
import { getWebpackConfig, getNextVersion } from 'grumbler-scripts/config/webpack.config';
import { argv } from 'yargs';
import pkg from './package.json';
import globals from './globals';
export const FILE_NAME = 'post-robot';
export const MODULE_NAME = 'postRobot';
const postRobotGlobals = {
...globals.__POST_ROBOT__,
__GLOBAL_KEY__: `__post_robot_${ getNextVersion(pkg, argv.level) }__`
};
export const WEBPACK_CONFIG = getWebpackConfig({
filename: `${ FILE_NAME }.js`,
modulename: MODULE_NAME,
minify: false,
vars: {
...globals,
__POST_ROBOT__: {
...postRobotGlobals,
__IE_POPUP_SUPPORT__: false,
__GLOBAL_MESSAGE_SUPPORT__: false
}
}
});
/* @flow */
/* eslint import/no-nodejs-modules: off, import/no-default-export: off */
import { getWebpackConfig, getNextVersion } from 'grumbler-scripts/config/webpack.config';
import { argv } from 'yargs';
import pkg from './package.json';
import globals from './globals';
const zoidGlobals = {
...globals.__ZOID__,
__GLOBAL_KEY__: `__zoid_${ getNextVersion(pkg, argv.level) }__`
};
export const FILE_NAME = 'zoid';
export const MODULE_NAME = 'zoid';
export const WEBPACK_CONFIG = getWebpackConfig({
filename: `${ FILE_NAME }.js`,
modulename: MODULE_NAME,
vars: globals,
minify: false
});
export const WEBPACK_CONFIG_MIN = getWebpackConfig({
filename: `${ FILE_NAME }.min.js`,
modulename: MODULE_NAME,