| @@ -14,8 +14,7 @@ const install = function(DC) { | |||
| DC.init(() => { | |||
| try { | |||
| const components = require('./src/components.js').default | |||
| DC.mixin(components) | |||
| DC.mixin(require('./src/components.js').default) | |||
| } catch (e) { | |||
| // eslint-disable-next-line no-console | |||
| console.error(e) | |||
| @@ -16,8 +16,7 @@ const install = function(DC) { | |||
| if (!DC.Initialized) { | |||
| DC.init(() => { | |||
| try { | |||
| const components = require('./src/components.js').default | |||
| DC.mixin(components) | |||
| DC.mixin(require('./src/components.js').default) | |||
| DC.Initialized = true | |||
| callback && callback() | |||
| } catch (e) { | |||
| @@ -12,8 +12,7 @@ const install = function(DC) { | |||
| try { | |||
| let mapv = require('mapv-lib') | |||
| DC.Namespace['mapv'] = mapv | |||
| const components = require('./src/components.js').default | |||
| DC.mixin(components) | |||
| DC.mixin(require('./src/components.js').default) | |||
| DC.mixin({ | |||
| MapvDataSet: mapv?.DataSet | |||
| }) | |||