fix: 修改生成引擎版本号以及 engine / vision polyfill sourceMap 的 bug

This commit is contained in:
lihao.ylh 2021-08-18 15:40:39 +08:00
parent 14fc9c3dcc
commit b997917ff3
7 changed files with 5 additions and 16 deletions

View File

@ -2,6 +2,7 @@
"entry": {
"engine-core": "src/index"
},
"sourceMap": true,
"library": "___AliLowCodeEngine___",
"libraryTarget": "umd",
"externals": {

View File

@ -1,5 +1,4 @@
{
"sourceMap": true,
"plugins": [
[
"build-plugin-component",

View File

@ -7,18 +7,7 @@ module.exports = ({ onGetWebpackConfig }) => {
.use(TsconfigPathsPlugin, [{
configFile: './tsconfig.json',
}]);
/*
config
// 定义插件名称
.plugin('MonacoWebpackPlugin')
// 第一项为具体插件,第二项为插件参数
.use(new MonacoWebpackPlugin({
languages:["javascript","css","json"]
}), []);
*/
config.plugins.delete('hot');
config.devServer.hot(false);
config.devtool('hidden-source-map');
});
};

View File

@ -5,7 +5,7 @@ const { join } = require('path');
const fse = require('fs-extra');
const gitBranchName = process.env.BUILD_GIT_BRANCH || execSync('git rev-parse --abbrev-ref HEAD', { encoding: 'utf-8' });
const reBranchVersion = /^(?:[a-z]+\/)(\d+\.\d+\.\d+)$/im;
const reBranchVersion = /^(?:[\w-]+\/)(\d+\.\d+\.\d+)$/im;
const match = reBranchVersion.exec(gitBranchName);
if (!match) {
@ -17,7 +17,7 @@ const releaseVersion = match[1];
const distDir = join(__dirname, '../dist');
const distFileNames = ['engine.js', 'engine-core.js'];
const distFileNames = ['engine-core.js'];
distFileNames.forEach(name => {
const distFile = join(distDir, 'js', name);

View File

@ -2,6 +2,7 @@
"entry": {
"vision-polyfill": "src/index"
},
"sourceMap": true,
"library": "___VisionPolyfill___",
"libraryTarget": "umd",
"externals": {

View File

@ -1,5 +1,4 @@
{
"sourceMap": true,
"plugins": [
[
"build-plugin-component",

View File

@ -19,6 +19,6 @@ module.exports = ({ onGetWebpackConfig }) => {
*/
config.plugins.delete('hot');
config.devServer.hot(false);
config.devtool('hidden-source-map');
// config.devtool('hidden-source-map');
});
};