(
cacheProps: ReadTransformProps,
callback: (error: ?Error, result: ?TransformedCode) => void,
)
| 250 | } |
| 251 | |
| 252 | _transformCodeForCallback( |
| 253 | cacheProps: ReadTransformProps, |
| 254 | callback: (error: ?Error, result: ?TransformedCode) => void, |
| 255 | ) { |
| 256 | const {_transformCode} = this; |
| 257 | invariant(_transformCode != null, 'missing code transform funtion'); |
| 258 | const {sourceCode, transformOptions} = cacheProps; |
| 259 | return _transformCode(this, sourceCode, transformOptions).then( |
| 260 | freshResult => process.nextTick(callback, undefined, freshResult), |
| 261 | error => process.nextTick(callback, error), |
| 262 | ); |
| 263 | } |
| 264 | |
| 265 | _transformAndStoreCodeGlobally( |
| 266 | cacheProps: ReadTransformProps, |
no test coverage detected