This repository was archived by the owner on Oct 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
examples/plainjs/develop/tree-shaking Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 66 "scripts" : {
77 "test" : " echo \" Error: no test specified\" && exit 1" ,
88 "build" : " webpack" ,
9- "install:dev:agile" : " yalc add @agile-ts/core & yarn install" ,
10- "install:prod:agile" : " yarn add @agile-ts/core & yarn install"
9+ "install:dev:agile" : " yalc add @agile-ts/core @agile-ts/logger & yarn install" ,
10+ "install:prod:agile" : " yarn add @agile-ts/core @agile-ts/logger & yarn install"
1111 },
1212 "author" : " " ,
1313 "license" : " ISC" ,
1616 "webpack-cli" : " ^4.8.0"
1717 },
1818 "dependencies" : {
19- "@agile-ts/core" : " file:.yalc/@agile-ts/core"
19+ "@agile-ts/core" : " file:.yalc/@agile-ts/core" ,
20+ "@agile-ts/logger" : " file:.yalc/@agile-ts/logger"
2021 }
2122}
Original file line number Diff line number Diff line change @@ -171,9 +171,7 @@ const niceLogCodeMessages = {
171171// Note: Not outsource the 'production' env check,
172172// because then webpack can't treeshake based on the current env
173173const logCodeMessages : typeof niceLogCodeMessages =
174- typeof process === 'object' && process . env . NODE_ENV !== 'production'
175- ? niceLogCodeMessages
176- : ( { } as any ) ;
174+ process . env . NODE_ENV !== 'production' ? niceLogCodeMessages : ( { } as any ) ;
177175
178176/**
179177 * Specifies whether the LogCodeManager is allowed to print any logs.
@@ -294,7 +292,7 @@ export function assignAdditionalLogs<
294292}
295293
296294let tempLogCodeManager : LogCodeManagerInterface < typeof logCodeMessages > ;
297- if ( typeof process === 'object' && process . env . NODE_ENV !== 'production' ) {
295+ if ( process . env . NODE_ENV !== 'production' ) {
298296 let loggerPackage : any = null ;
299297 try {
300298 loggerPackage = require ( '@agile-ts/logger' ) ;
You can’t perform that action at this time.
0 commit comments