MCPcopy
hub / github.com/postcss/postcss / then

Method then

lib/lazy-result.js:439–450  ·  view source on GitHub ↗
(onFulfilled, onRejected)

Source from the content-addressed store, hash-verified

437 }
438
439 then(onFulfilled, onRejected) {
440 if (process.env.NODE_ENV !== 'production') {
441 if (!('from' in this.opts)) {
442 warnOnce(
443 'Without `from` option PostCSS could generate wrong source map ' +
444 'and will not find Browserslist config. Set it to CSS file path ' +
445 'or to `undefined` to prevent this warning.'
446 )
447 }
448 }
449 return this.async().then(onFulfilled, onRejected)
450 }
451
452 toString() {
453 return this.css

Callers 5

finallyMethod · 0.45
processor.test.tsFile · 0.45
types.tsFile · 0.45

Calls 1

asyncMethod · 0.95

Tested by

no test coverage detected