chore(minimap): modify dependency

This commit is contained in:
yilin.qyl 2019-03-21 14:51:19 +08:00
parent 15f28ece4e
commit 6da87de606
2 changed files with 18 additions and 2 deletions

View File

@ -1,10 +1,26 @@
module.exports = {
babelrc: {
plugins: [
'@babel/plugin-proposal-object-rest-spread',
'transform-remove-strict-mode',
[
"module-resolver",
{
"alias": {
'@antv/g6': './src/index'
},
}
],
],
presets: [
"@babel/preset-env",
],
sourceMaps: 'inline',
},
extensions: ['.js'],
exclude: ['node_modules', 'bower_components']
include: [
'src/**/*.js',
'plugins/**/*.js',
],
exclude: /(node_modules|bower_components)/
}

View File

@ -1,4 +1,4 @@
const G = require('@antv/g/lib');
const G = require('@antv/g6').G;
const Base = require('../base');
const isString = require('@antv/util/lib/type/is-string');
const isNil = require('@antv/util/lib/type/is-nil');