@plasmicapp/loader-react 1.0.215 → 1.0.217
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.
- package/dist/loader-react.cjs.development.js +6 -9
- package/dist/loader-react.cjs.development.js.map +1 -1
- package/dist/loader-react.cjs.production.min.js +1 -1
- package/dist/loader-react.cjs.production.min.js.map +1 -1
- package/dist/loader-react.esm.js +6 -9
- package/dist/loader-react.esm.js.map +1 -1
- package/package.json +9 -9
|
@@ -7,6 +7,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
7
7
|
var PlasmicDataSourcesContext = require('@plasmicapp/data-sources-context');
|
|
8
8
|
var PlasmicHost = require('@plasmicapp/host');
|
|
9
9
|
var loaderCore = require('@plasmicapp/loader-core');
|
|
10
|
+
var loaderFetcher = require('@plasmicapp/loader-fetcher');
|
|
10
11
|
var loaderSplits = require('@plasmicapp/loader-splits');
|
|
11
12
|
var PlasmicQuery = require('@plasmicapp/query');
|
|
12
13
|
var React = require('react');
|
|
@@ -1855,14 +1856,11 @@ var InternalPlasmicComponentLoader = /*#__PURE__*/function () {
|
|
|
1855
1856
|
//
|
|
1856
1857
|
// This is the code that reads the stored bundle and merges it back into the loader.
|
|
1857
1858
|
if (!isBrowser) {
|
|
1858
|
-
// Check if a bundle
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
// If it's there, merge
|
|
1862
|
-
|
|
1863
|
-
if (storedBundle) {
|
|
1864
|
-
this.reactServerLoader.mergeBundle(storedBundle);
|
|
1865
|
-
}
|
|
1859
|
+
// Check if we have a cached bundle on this Node server.
|
|
1860
|
+
var cachedBundle = loaderFetcher.internal_getCachedBundleInNodeServer(this.opts);
|
|
1861
|
+
if (cachedBundle) {
|
|
1862
|
+
// If it's there, merge the cached bundle first.
|
|
1863
|
+
this.reactServerLoader.mergeBundle(cachedBundle);
|
|
1866
1864
|
}
|
|
1867
1865
|
}
|
|
1868
1866
|
this.reactServerLoader.mergeBundle(bundle);
|
|
@@ -2218,7 +2216,6 @@ var PlasmicComponentLoader = /*#__PURE__*/function () {
|
|
|
2218
2216
|
};
|
|
2219
2217
|
return PlasmicComponentLoader;
|
|
2220
2218
|
}();
|
|
2221
|
-
var global = globalThis;
|
|
2222
2219
|
|
|
2223
2220
|
/**
|
|
2224
2221
|
* Hook that fetches and returns a React component for rendering the argument
|