Sha256: ffbb4890dd61891f3972cf7894f2e9fb4359d85ab9319606a251f408b08393eb
Contents?: true
Size: 559 Bytes
Versions: 4
Compression:
Stored size: 559 Bytes
Contents
<%= add_documentation_reference(config[:message], "// https://github.com/shakacode/react_on_rails_tutorial_with_ssr_and_hmr_fast_refresh/blob/master/babel.config.js") %> const defaultConfigFunc = require('@rails/webpacker/package/babel/preset.js'); module.exports = function (api) { const resultConfig = defaultConfigFunc(api); const changesOnDefault = { plugins: [process.env.WEBPACK_SERVE && 'react-refresh/babel'].filter(Boolean), }; resultConfig.plugins = [...resultConfig.plugins, ...changesOnDefault.plugins]; return resultConfig; };
Version data entries
4 entries across 4 versions & 1 rubygems