diff --git a/depend.ts b/depend.ts deleted file mode 100644 index c38e278..0000000 --- a/depend.ts +++ /dev/null @@ -1,4 +0,0 @@ -import XEUtils from 'xe-utils/ctor' -import dependencies from 'vxe-table/lib/utils/dependencies' - -XEUtils.mixin(dependencies) diff --git a/gulpfile.js b/gulpfile.js index 8409b38..1c5cf14 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -12,7 +12,7 @@ const tsconfig = require('./tsconfig.json') const exportModuleName = 'VXETablePluginExportXLSX' gulp.task('build_commonjs', function () { - return gulp.src(['depend.ts', 'index.ts']) + return gulp.src(['index.ts']) .pipe(sourcemaps.init()) .pipe(ts(tsconfig.compilerOptions)) .pipe(babel({ @@ -27,7 +27,7 @@ gulp.task('build_commonjs', function () { }) gulp.task('build_umd', function () { - return gulp.src(['depend.ts', 'index.ts']) + return gulp.src(['index.ts']) .pipe(ts(tsconfig.compilerOptions)) .pipe(replace(`from 'xe-utils/ctor';`, `from 'xe-utils';`)) .pipe(replace(`from 'vxe-table/lib/vxe-table';`, `from 'vxe-table';`)) diff --git a/index.ts b/index.ts index 058c8e8..e1bc468 100644 --- a/index.ts +++ b/index.ts @@ -1,4 +1,4 @@ -import XEUtils from 'xe-utils/ctor' +import XEUtils from 'xe-utils' import { VXETableCore, VxeTableConstructor, diff --git a/package.json b/package.json index 0a163ff..23eef0f 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "prettier": "^2.1.2", "typescript": "^4.0.5", "vue": "^3.0.6", - "vxe-table": "^4.0.0", + "vxe-table": "^4.0.1", "xe-utils": "^3.1.11" }, "peerDependencies": { diff --git a/tsconfig.json b/tsconfig.json index 8bac054..2b4f3f7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,6 @@ { "files": [ - "index.ts", - "depend.ts" + "index.ts" ], "compilerOptions": { "strict": true,