JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 176
  • Score
    100M100P100Q95136F
  • License MIT

Re-define plugins for attaching and resolving external dependencies

Package Exports

  • re-define-include-external

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (re-define-include-external) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

re-define-include-external

re-define plugin for finding external files, outside the scope of the project.

Usage:

var findExternal = require('re-define-include-external')({
    external     : {"lodash":"./vendor/lodash.js"}
  , discoverable : ['node_modules', 'bower_component']
  , descriptors  : ['package.json', 'bower.json']
  , skip         : ['module_name'] //do not load these modules and treat as external
  , exclude      : ['module_name'] //exclude external dep from template

  //you can also specify your custom location using callbacks for descriptors and files
  , descriptorLocations: function(file, config) {}
  , fileLocations: function(file, config) {}

  //to merge your custom paths with default ones to create uber set, you can use defaults
  fileLocations: function(file, config) {
    return findExternal.defaults.fileLocations(file.config).concat(['your custom array of paths'])
  }

  })