TransloaditPlugin.js 403 B

1234567891011121314
  1. export default class TransloaditPlugin {
  2. // This contains boilerplate that all TransloaditPlugins share - and should not be used
  3. // directly. It also shows which methods final plugins should implement/override,
  4. // this deciding on structure.
  5. constructor(core, opts) {
  6. this.core = core;
  7. this.opts = opts;
  8. this.name = this.constructor.name;
  9. }
  10. run(files) {
  11. return files;
  12. }
  13. }