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": {