TransloaditPlugin.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  2. "use strict";
  3. Object.defineProperty(exports, "__esModule", {
  4. value: true
  5. });
  6. var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
  7. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  8. var TransloaditPlugin = (function () {
  9. // This contains boilerplate that all TransloaditPlugins share - and should not be used
  10. // directly. It also shows which methods final plugins should implement/override,
  11. // this deciding on structure.
  12. function TransloaditPlugin(core, opts) {
  13. _classCallCheck(this, TransloaditPlugin);
  14. this.core = core;
  15. this.opts = opts;
  16. this.name = this.constructor.name;
  17. }
  18. _createClass(TransloaditPlugin, [{
  19. key: "run",
  20. value: function run(files) {
  21. return files;
  22. }
  23. }]);
  24. return TransloaditPlugin;
  25. })();
  26. exports["default"] = TransloaditPlugin;
  27. module.exports = exports["default"];
  28. },{}]},{},[1]);