@builder.io/mitosis 0.0.56-95 → 0.0.56-96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,6 +18,7 @@ var add_prevent_default_1 = require("./add-prevent-default");
18
18
  var convert_method_to_function_1 = require("./convert-method-to-function");
19
19
  var jsx_1 = require("./jsx");
20
20
  var src_generator_1 = require("./src-generator");
21
+ var plugins_1 = require("../../modules/plugins");
21
22
  Error.stackTraceLimit = 9999;
22
23
  // TODO(misko): styles are not processed.
23
24
  var DEBUG = false;
@@ -28,7 +29,13 @@ var componentToQwik = function (userOptions) {
28
29
  var _component = _a.component, path = _a.path;
29
30
  // Make a copy we can safely mutate, similar to babel's toolchain
30
31
  var component = (0, fast_clone_1.fastClone)(_component);
32
+ if (userOptions.plugins) {
33
+ component = (0, plugins_1.runPreJsonPlugins)(component, userOptions.plugins);
34
+ }
31
35
  (0, add_prevent_default_1.addPreventDefault)(component);
36
+ if (userOptions.plugins) {
37
+ component = (0, plugins_1.runPostJsonPlugins)(component, userOptions.plugins);
38
+ }
32
39
  var file = new src_generator_1.File(component.name + '.js', {
33
40
  isPretty: true,
34
41
  isJSX: true,