util

Generic utilities and configuration objects.

Source:

Members

(static) babelBEOptions :Object

Source:

Babel configuration for the Node.js.

Type:
  • Object
Example
import {babelBEOptions} from 'webcompiler';
// or - import {babelBEOptions} from 'webcompiler/lib/util';
// or - var babelBEOptions = require('webcompiler').babelBEOptions;
// or - var babelBEOptions = require('webcompiler/lib/util').babelBEOptions;

(static) babelFEOptions :Object

Source:

Babel configuration for the browser.

Type:
  • Object
Example
import {babelFEOptions} from 'webcompiler';
// or - import {babelFEOptions} from 'webcompiler/lib/util';
// or - var babelFEOptions = require('webcompiler').babelFEOptions;
// or - var babelFEOptions = require('webcompiler/lib/util').babelFEOptions;

(static, constant) isNode :boolean

Source:

true on Node.js

Type:
  • boolean
Example
import {isNode} from 'webcompiler';
// or - import {isNode} from 'webcompiler/lib/util';
// or - var isNode = require('webcompiler').isNode;
// or - var isNode = require('webcompiler/lib/util').isNode;

(static, constant) isProduction :boolean

Source:

true if the NODE_ENV environment variable is set to "production"

Type:
  • boolean
Example
import {isProduction} from 'webcompiler';
// or - import {isProduction} from 'webcompiler/lib/util';
// or - var isProduction = require('webcompiler').isProduction;
// or - var isProduction = require('webcompiler/lib/util').isProduction;