UNPKG

overwatch-api-server

Version:
18 lines (13 loc) 366 B
'use strict'; const ESPOWER_PATTERNS = require('./espower-patterns.json'); module.exports = (context, options) => { const plugins = []; if (!options || options.powerAssert !== false) { plugins.push([require('babel-plugin-espower'), { embedAst: true, patterns: ESPOWER_PATTERNS }]); } plugins.push(require('./throws-helper')); return {plugins}; };