File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,15 @@ class FunctionModuleTemplatePlugin {
2828 source . add ( "/*!****" + req . replace ( / ./ g, "*" ) + "****!*\\\n" ) ;
2929 source . add ( " !*** " + req . replace ( / \* \/ / g, "*_/" ) + " ***!\n" ) ;
3030 source . add ( " \\****" + req . replace ( / ./ g, "*" ) + "****/\n" ) ;
31- if ( Array . isArray ( module . providedExports ) )
31+ if ( Array . isArray ( module . providedExports ) && module . providedExports . length === 0 )
32+ source . add ( "/*! no exports provided */\n" ) ;
33+ else if ( Array . isArray ( module . providedExports ) )
3234 source . add ( "/*! exports provided: " + module . providedExports . join ( ", " ) + " */\n" ) ;
3335 else if ( module . providedExports )
34- source . add ( "/*! no static exports found */\n" ) ;
35- if ( Array . isArray ( module . usedExports ) )
36+ source . add ( "/*! dynamic exports provided */\n" ) ;
37+ if ( Array . isArray ( module . usedExports ) && module . usedExports . length === 0 )
38+ source . add ( "/*! no exports used */\n" ) ;
39+ else if ( Array . isArray ( module . usedExports ) )
3640 source . add ( "/*! exports used: " + module . usedExports . join ( ", " ) + " */\n" ) ;
3741 else if ( module . usedExports )
3842 source . add ( "/*! all exports used */\n" ) ;
You can’t perform that action at this time.
0 commit comments