index.js
function suit(options) {
  options = options || {};
  // for backwards compatibility with rework-npm < 1.0.0
  options.root = options.root || options.dir;

  return function (ast, reworkObj) {
    reworkObj
      // inline imports
      .use(inliner({
        alias: options.alias,
        prefilter: function (css) {
          // per-file conformance checks
          return rework(css).use(conformance).toString();
        },
        root: options.root,
        shim: options.shim,
      }))
      // check if the number of selectors exceeds the IE limit
      .use(limits)
      // custom media queries
      .use(customMedia)
      // variables
      .use(vars())
      // calc
      .use(calc);
  };
}
function suit(options) {
  options = options || {};
  // for backwards compatibility with rework-npm < 1.0.0
  options.root = options.root || options.dir;

  return function (ast, reworkObj) {
    reworkObj
      // inline imports
      .use(inliner({
        alias: options.alias,
        prefilter: function (css) {
          // per-file conformance checks
          return rework(css).use(conformance).toString();
        },
        root: options.root,
        shim: options.shim,
      }))
      // check if the number of selectors exceeds the IE limit
      .use(limits)
      // custom media queries
      .use(customMedia)
      // variables
      .use(vars())
      // calc
      .use(calc);
  };
}
function suit ( options ) { options = options || { } ; // for backwards compatibility with rework-npm < 1.0.0 options . root = options . root || options . dir ; return function ( ast , reworkObj ) { reworkObj // inline imports . use ( inliner ( { alias : options . alias , prefilter : function ( css ) { // per-file conformance checks return rework ( css ) . use ( conformance ) . toString ( ) ; } , root : options . root , shim : options . shim , } ) ) // check if the number of selectors exceeds the IE limit . use ( limits ) // custom media queries . use ( customMedia ) // variables . use ( vars ( ) ) // calc . use ( calc ) ; } ; }
Apply rework plugins to a rework instance; export as a rework plugin

@param {String} ast Rework AST
@param {Object} reworkObj Rework instance
Apply rework plugins to a rework instance ; export as a rework plugin