statebus 7.0.22 → 7.0.23
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/package.json +1 -1
- package/statebus.js +5 -2
package/package.json
CHANGED
package/statebus.js
CHANGED
|
@@ -2239,13 +2239,16 @@
|
|
|
2239
2239
|
bus.libs = {}
|
|
2240
2240
|
|
|
2241
2241
|
if (nodejs)
|
|
2242
|
-
require(
|
|
2242
|
+
// Use require.call() instead of require() to fool jsdelivr.net into ignoring the require
|
|
2243
|
+
require.call(null, './server-library').import_server(bus, make_bus, options)
|
|
2243
2244
|
|
|
2244
2245
|
bus.render_when_loading = true
|
|
2245
2246
|
return bus
|
|
2246
2247
|
}
|
|
2247
2248
|
|
|
2248
|
-
if (nodejs)
|
|
2249
|
+
if (nodejs)
|
|
2250
|
+
// Use require.call() instead of require() to fool jsdelivr.net into ignoring the require
|
|
2251
|
+
require.call(null, './server-library').import_module(make_bus)
|
|
2249
2252
|
|
|
2250
2253
|
return make_bus
|
|
2251
2254
|
}))
|