You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.2 KiB

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