MCPcopy Create free account
hub / github.com/gaearon/react-hot-loader / additionalTransform

Function additionalTransform

src/webpack/patch.js:179–184  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

177const sign = '/* 🔥 this is hot-loader/react-dom 🔥 */';
178
179function additionalTransform(source) {
180 for (const key in additional) {
181 source = source.split(additional[key][0]).join(additional[key][1]);
182 }
183 return source;
184}
185
186function transform(source) {
187 if (source.indexOf('reconcileSingleElement') < 0) {

Callers 1

transformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected