From 623ef32fd0779fe59f246df7614f5bf1eb3a5a8b Mon Sep 17 00:00:00 2001 From: xuliangzhan Date: Wed, 11 Nov 2020 12:12:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=204.0=20next=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulpfile.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 9213430..a8e8cf3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -29,7 +29,7 @@ gulp.task('build_commonjs', function () { gulp.task('build_umd', function () { return gulp.src(['depend.ts', 'index.ts']) .pipe(ts(tsconfig.compilerOptions)) - .pipe(replace(`import XEUtils from 'xe-utils/ctor';`, `import XEUtils from 'xe-utils';`)) + .pipe(replace('import XEUtils from \'xe-utils/ctor\';', 'import XEUtils from \'xe-utils\';')) .pipe(babel({ moduleId: pack.name, presets: [ @@ -40,13 +40,13 @@ gulp.task('build_umd', function () { globals: { [pack.name]: exportModuleName, 'xe-utils': 'XEUtils', - 'jspdf': 'jspdf' + jspdf: 'jspdf' }, exactGlobals: true }] ] })) - .pipe(replace(`global.jspdf`, `global.jsPDF || global.jspdf`)) + .pipe(replace('global.jspdf', 'global.jsPDF || global.jspdf')) .pipe(replace(`global.${exportModuleName} = mod.exports;`, `global.${exportModuleName} = mod.exports.default;`)) .pipe(rename({ basename: 'index', diff --git a/package.json b/package.json index f618531..dab1a0a 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "prettier": "^2.1.2", "typescript": "^4.0.5", "vue": "^3.0.2", - "vxe-table": "^4.0.0-alpha.1", + "vxe-table": "^4.0.0-alpha.2", "xe-utils": "^3.0.1" }, "peerDependencies": {