Pārlūkot izejas kodu

change the packages install method

tags/2.0.0
Caven Chen pirms 4 gadiem
vecāks
revīzija
dd5f06a6db
3 mainītis faili ar 3 papildinājumiem un 6 dzēšanām
  1. 1
    2
      packages/chart/index.js
  2. 1
    2
      packages/core/index.js
  3. 1
    2
      packages/mapv/index.js

+ 1
- 2
packages/chart/index.js Parādīt failu

@@ -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)

+ 1
- 2
packages/core/index.js Parādīt failu

@@ -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) {

+ 1
- 2
packages/mapv/index.js Parādīt failu

@@ -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
})

Notiek ielāde…
Atcelt
Saglabāt