Match-id-0ea64d4ad1f5f3234446fd1e6e5a19918b696d31
This commit is contained in:
parent
062e0065b8
commit
64488b2e08
|
@ -1,4 +0,0 @@
|
|||
/*
|
||||
区分是否开发者模式
|
||||
*/
|
||||
declare var isDev: boolean;
|
|
@ -83,6 +83,7 @@ const Horizon = {
|
|||
_getProcessingVNode,
|
||||
};
|
||||
|
||||
export const version = __VERSION__;
|
||||
export {
|
||||
Children,
|
||||
createRef,
|
||||
|
@ -115,7 +116,6 @@ export {
|
|||
findDOMNode,
|
||||
unmountComponentAtNode,
|
||||
act,
|
||||
|
||||
// 暂时给HorizonX使用
|
||||
_launchUpdateFromVNode,
|
||||
_getProcessingVNode,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"keywords": [
|
||||
"horizon"
|
||||
],
|
||||
"version": "0.0.6",
|
||||
"version": "0.0.7",
|
||||
"homepage": "",
|
||||
"bugs": "",
|
||||
"main": "index.js",
|
||||
|
|
|
@ -5,3 +5,4 @@ global.MessageChannel = function MessageChannel() {
|
|||
postMessage() { }
|
||||
};
|
||||
};
|
||||
global.__VERSION__ = require('../../../libs/horizon/package.json').version;
|
||||
|
|
|
@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||
const ESLintPlugin = require('eslint-webpack-plugin');
|
||||
const baseConfig = require('./webpack.base');
|
||||
const path = require('path');
|
||||
const horizonVersion = require('../../libs/horizon/package.json').version;
|
||||
|
||||
const mode = 'development';
|
||||
const devtool = 'inline-source-map';
|
||||
|
@ -12,6 +13,7 @@ const plugins = [
|
|||
new webpack.DefinePlugin({
|
||||
'process.env.NODE_ENV': '"development"',
|
||||
isDev: 'true',
|
||||
__VERSION__: `"${horizonVersion}"`,
|
||||
}),
|
||||
];
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
const baseConfig = require('./webpack.base');
|
||||
const path = require('path');
|
||||
const horizonVersion = require('../../libs/horizon/package.json').version;
|
||||
|
||||
const mode = 'production';
|
||||
const devtool = 'none';
|
||||
|
@ -11,6 +12,7 @@ const plugins = [
|
|||
new webpack.DefinePlugin({
|
||||
'process.env.NODE_ENV': '"production"',
|
||||
isDev: 'false',
|
||||
__VERSION__: `"${horizonVersion}"`,
|
||||
})
|
||||
];
|
||||
|
||||
|
|
|
@ -34,7 +34,8 @@
|
|||
},
|
||||
"include": [
|
||||
"./libs/**/src/**/*.ts",
|
||||
"libs/horizon/index.d.ts"
|
||||
"./libs/**/*.ts",
|
||||
"./libs/horizon/global.d.ts"
|
||||
],
|
||||
"exclude": ["node_modules", "**/*.spec.ts", "dev"],
|
||||
"types": ["node"]
|
||||
|
|
Loading…
Reference in New Issue