'use strict'

var path = require('path')
var createTransform = require('./transform')

module.exports = function degreePlugin (browserify, options) {
  browserify.transform(createTransform(options.files.map(resolve)))

  function resolve (file) {
    return path.resolve(browserify.basedir || process.cwd(), file)
  }
}

'use strict'

var createTransform = require('./transform')

module.exports = function degreePlugin (browserify, options) {
  browserify.transform(createTransform(options.files.map(resolve)))

  function resolve (file) {
    return require.resolve(browserify.basedir || process.cwd(), file)
  }
}

Use require.resolve to turn partial filenames or '.' into full names
Use require.resolve to turn partial filenames or '.' into full names
