update
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
import XEUtils from 'xe-utils/ctor'
|
||||
import dependencies from 'vxe-table/lib/utils/dependencies'
|
||||
|
||||
XEUtils.mixin(dependencies)
|
||||
@@ -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';`))
|
||||
|
||||
2
index.ts
2
index.ts
@@ -1,4 +1,4 @@
|
||||
import XEUtils from 'xe-utils/ctor'
|
||||
import XEUtils from 'xe-utils'
|
||||
import {
|
||||
VXETableCore,
|
||||
VxeTableConstructor,
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"files": [
|
||||
"index.ts",
|
||||
"depend.ts"
|
||||
"index.ts"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"strict": true,
|
||||
|
||||
Reference in New Issue
Block a user