File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -250,9 +250,13 @@ class BaseService {
250250 if ( ! _ . isEmpty ( microConfig ) ) {
251251 const root = microConfig . root ;
252252 const filename = CONSTANTS . EXTRAL_CONFIG_NAME . replace ( 'extra' , name ) ;
253- const config = loadFile ( root , filename ) ;
254- if ( ! _ . isEmpty ( config ) ) {
255- return config ;
253+ const _config = loadFile ( root , filename ) ;
254+ if ( ! _ . isEmpty ( _config ) ) {
255+ return _config ;
256+ }
257+ const _extraConfig = this . extraConfig || { } ;
258+ if ( ! _ . isEmpty ( _extraConfig [ name ] ) ) {
259+ return _extraConfig [ name ] ;
256260 }
257261 const _originalConfig = microConfig . originalConfig || { } ;
258262 if ( ! _ . isEmpty ( _originalConfig [ name ] ) ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " @micro-app/core" ,
3- "version" : " 0.2.1 " ,
3+ "version" : " 0.2.2 " ,
44 "description" : " [Core] Pluggable micro application framework." ,
55 "main" : " src/index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments