Match-id-7204860d15e5008d5a5bc4b77a5abe4855e17ff8
This commit is contained in:
parent
7baba42281
commit
94eef7fa95
|
|
@ -23,7 +23,8 @@ if (!fs.existsSync(outDir)) {
|
|||
const outputResolve = (...p) => path.resolve(outDir, ...p);
|
||||
|
||||
function genConfig(mode) {
|
||||
const sourcemap = mode === 'development' ? 'inline' : false;
|
||||
const isDev = mode === 'development';
|
||||
const sourcemap = isDev ? 'inline' : false;
|
||||
return {
|
||||
input: path.resolve(libDir, 'index.ts'),
|
||||
output: [
|
||||
|
|
@ -53,7 +54,8 @@ function genConfig(mode) {
|
|||
replace({
|
||||
values: {
|
||||
'process.env.NODE_ENV': `"${mode}"`,
|
||||
isDev: 'true',
|
||||
isDev: isDev.toString(),
|
||||
isTest: false,
|
||||
__VERSION__: `"${horizonVersion}"`,
|
||||
},
|
||||
preventAssignment: true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue