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