1
0
mirror of synced 2025-12-24 14:18:02 +08:00
This commit is contained in:
xuliangzhan
2021-03-11 20:05:23 +08:00
parent dcce9440e7
commit 5be863e85b
5 changed files with 5 additions and 10 deletions

View File

@@ -1,4 +0,0 @@
import XEUtils from 'xe-utils/ctor'
import dependencies from 'vxe-table/lib/utils/dependencies'
XEUtils.mixin(dependencies)

View File

@@ -12,7 +12,7 @@ const tsconfig = require('./tsconfig.json')
const exportModuleName = 'VXETablePluginExportXLSX' const exportModuleName = 'VXETablePluginExportXLSX'
gulp.task('build_commonjs', function () { gulp.task('build_commonjs', function () {
return gulp.src(['depend.ts', 'index.ts']) return gulp.src(['index.ts'])
.pipe(sourcemaps.init()) .pipe(sourcemaps.init())
.pipe(ts(tsconfig.compilerOptions)) .pipe(ts(tsconfig.compilerOptions))
.pipe(babel({ .pipe(babel({
@@ -27,7 +27,7 @@ gulp.task('build_commonjs', function () {
}) })
gulp.task('build_umd', function () { gulp.task('build_umd', function () {
return gulp.src(['depend.ts', 'index.ts']) return gulp.src(['index.ts'])
.pipe(ts(tsconfig.compilerOptions)) .pipe(ts(tsconfig.compilerOptions))
.pipe(replace(`from 'xe-utils/ctor';`, `from 'xe-utils';`)) .pipe(replace(`from 'xe-utils/ctor';`, `from 'xe-utils';`))
.pipe(replace(`from 'vxe-table/lib/vxe-table';`, `from 'vxe-table';`)) .pipe(replace(`from 'vxe-table/lib/vxe-table';`, `from 'vxe-table';`))

View File

@@ -1,4 +1,4 @@
import XEUtils from 'xe-utils/ctor' import XEUtils from 'xe-utils'
import { import {
VXETableCore, VXETableCore,
VxeTableConstructor, VxeTableConstructor,

View File

@@ -49,7 +49,7 @@
"prettier": "^2.1.2", "prettier": "^2.1.2",
"typescript": "^4.0.5", "typescript": "^4.0.5",
"vue": "^3.0.6", "vue": "^3.0.6",
"vxe-table": "^4.0.0", "vxe-table": "^4.0.1",
"xe-utils": "^3.1.11" "xe-utils": "^3.1.11"
}, },
"peerDependencies": { "peerDependencies": {

View File

@@ -1,7 +1,6 @@
{ {
"files": [ "files": [
"index.ts", "index.ts"
"depend.ts"
], ],
"compilerOptions": { "compilerOptions": {
"strict": true, "strict": true,