@modern-js/plugin-garfish 1.4.11 → 1.4.12

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.
@@ -59,9 +59,7 @@ export default (({
59
59
 
60
60
  config() {
61
61
  // eslint-disable-next-line react-hooks/rules-of-hooks
62
- const config = useAppContext(); // eslint-disable-next-line react-hooks/rules-of-hooks
63
-
64
- const resolveOptions = useResolvedConfigContext();
62
+ const config = useAppContext();
65
63
  pluginsExportsUtils = createRuntimeExportsUtils(config.internalDirectory, 'plugins');
66
64
  runtimeExportsUtils = createRuntimeExportsUtils(config.internalDirectory, 'index');
67
65
  return {
@@ -83,6 +81,9 @@ export default (({
83
81
  }) => {
84
82
  var _resolveOptions$deplo, _resolveWebpackConfig;
85
83
 
84
+ // eslint-disable-next-line react-hooks/rules-of-hooks
85
+ const resolveOptions = useResolvedConfigContext();
86
+
86
87
  if (resolveOptions !== null && resolveOptions !== void 0 && (_resolveOptions$deplo = resolveOptions.deploy) !== null && _resolveOptions$deplo !== void 0 && _resolveOptions$deplo.microFrontend) {
87
88
  var _resolveOptions$serve, _resolveOptions$deplo2, _resolveOptions$deplo3;
88
89
 
@@ -74,9 +74,7 @@ var _default = ({
74
74
 
75
75
  config() {
76
76
  // eslint-disable-next-line react-hooks/rules-of-hooks
77
- const config = useAppContext(); // eslint-disable-next-line react-hooks/rules-of-hooks
78
-
79
- const resolveOptions = useResolvedConfigContext();
77
+ const config = useAppContext();
80
78
  pluginsExportsUtils = (0, _utils.createRuntimeExportsUtils)(config.internalDirectory, 'plugins');
81
79
  runtimeExportsUtils = (0, _utils.createRuntimeExportsUtils)(config.internalDirectory, 'index');
82
80
  return {
@@ -98,6 +96,9 @@ var _default = ({
98
96
  }) => {
99
97
  var _resolveOptions$deplo, _resolveWebpackConfig;
100
98
 
99
+ // eslint-disable-next-line react-hooks/rules-of-hooks
100
+ const resolveOptions = useResolvedConfigContext();
101
+
101
102
  if (resolveOptions !== null && resolveOptions !== void 0 && (_resolveOptions$deplo = resolveOptions.deploy) !== null && _resolveOptions$deplo !== void 0 && _resolveOptions$deplo.microFrontend) {
102
103
  var _resolveOptions$serve, _resolveOptions$deplo2, _resolveOptions$deplo3;
103
104
 
@@ -72,9 +72,7 @@ export default (function () {
72
72
  }(),
73
73
  config: function config() {
74
74
  // eslint-disable-next-line react-hooks/rules-of-hooks
75
- var config = useAppContext(); // eslint-disable-next-line react-hooks/rules-of-hooks
76
-
77
- var resolveOptions = useResolvedConfigContext();
75
+ var config = useAppContext();
78
76
  pluginsExportsUtils = createRuntimeExportsUtils(config.internalDirectory, 'plugins');
79
77
  runtimeExportsUtils = createRuntimeExportsUtils(config.internalDirectory, 'index');
80
78
  return {
@@ -96,6 +94,8 @@ export default (function () {
96
94
  _webpack = _ref3.webpack,
97
95
  _ref3$env = _ref3.env,
98
96
  env = _ref3$env === void 0 ? process.env.NODE_ENV || 'development' : _ref3$env;
97
+ // eslint-disable-next-line react-hooks/rules-of-hooks
98
+ var resolveOptions = useResolvedConfigContext();
99
99
 
100
100
  if (resolveOptions !== null && resolveOptions !== void 0 && (_resolveOptions$deplo = resolveOptions.deploy) !== null && _resolveOptions$deplo !== void 0 && _resolveOptions$deplo.microFrontend) {
101
101
  var _resolveOptions$serve, _resolveOptions$deplo2, _resolveOptions$deplo3;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.4.11",
14
+ "version": "1.4.12",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/runtime/index.d.ts",
17
17
  "typesVersions": {