UNPKG

gatsby-plugin-nerv

Version:

A Gatsby plugin which replaces React with Nerv

15 lines (12 loc) 271 B
'use strict'; exports.modifyWebpackConfig = function (_ref) { var config = _ref.config, stage = _ref.stage; if (stage !== 'develop-html') { config._config.resolve.alias = { react: 'nervjs', 'react-dom': 'nervjs' }; } return config; };