We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ae062a + b473576 commit b51e89dCopy full SHA for b51e89d
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "oc-client-browser",
3
- "version": "2.1.2",
+ "version": "2.1.3",
4
"description": "OC browser client",
5
"main": "index.js",
6
"types": "index.d.ts",
src/oc-client.js
@@ -457,7 +457,10 @@ export function createOc(oc) {
457
};
458
459
const { mount } = await import(data.component.src);
460
- mount(data.element, data.component.props);
+ let context = {};
461
+ if (data.component.development)
462
+ context.development = data.component.development;
463
+ mount(data.element, data.component.props, context);
464
callback(null);
465
} catch (error) {
466
console.error("Error rendering ESM component", error);
0 commit comments