index.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. Object.defineProperty(exports, "ImportInjector", {
  6. enumerable: true,
  7. get: function () {
  8. return _importInjector.default;
  9. }
  10. });
  11. exports.addDefault = addDefault;
  12. exports.addNamed = addNamed;
  13. exports.addNamespace = addNamespace;
  14. exports.addSideEffect = addSideEffect;
  15. Object.defineProperty(exports, "isModule", {
  16. enumerable: true,
  17. get: function () {
  18. return _isModule.default;
  19. }
  20. });
  21. var _importInjector = require("./import-injector");
  22. var _isModule = require("./is-module");
  23. function addDefault(path, importedSource, opts) {
  24. return new _importInjector.default(path).addDefault(importedSource, opts);
  25. }
  26. function addNamed(path, name, importedSource, opts) {
  27. return new _importInjector.default(path).addNamed(name, importedSource, opts);
  28. }
  29. function addNamespace(path, importedSource, opts) {
  30. return new _importInjector.default(path).addNamespace(importedSource, opts);
  31. }
  32. function addSideEffect(path, importedSource, opts) {
  33. return new _importInjector.default(path).addSideEffect(importedSource, opts);
  34. }