mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
fix: 修改生成引擎版本号以及 engine / vision polyfill sourceMap 的 bug
This commit is contained in:
parent
14fc9c3dcc
commit
b997917ff3
@ -2,6 +2,7 @@
|
||||
"entry": {
|
||||
"engine-core": "src/index"
|
||||
},
|
||||
"sourceMap": true,
|
||||
"library": "___AliLowCodeEngine___",
|
||||
"libraryTarget": "umd",
|
||||
"externals": {
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
{
|
||||
"sourceMap": true,
|
||||
"plugins": [
|
||||
[
|
||||
"build-plugin-component",
|
||||
|
||||
@ -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');
|
||||
});
|
||||
};
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
"entry": {
|
||||
"vision-polyfill": "src/index"
|
||||
},
|
||||
"sourceMap": true,
|
||||
"library": "___VisionPolyfill___",
|
||||
"libraryTarget": "umd",
|
||||
"externals": {
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
{
|
||||
"sourceMap": true,
|
||||
"plugins": [
|
||||
[
|
||||
"build-plugin-component",
|
||||
|
||||
@ -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');
|
||||
});
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user