File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -203,10 +203,10 @@ class APIPlugin {
203203 ) ;
204204
205205 parser . hooks . expression
206- . for ( "__webpack_module_id__ " )
206+ . for ( "__webpack_module__.id " )
207207 . tap ( "APIPlugin" , expr => {
208208 parser . state . module . buildInfo . moduleConcatenationBailout =
209- "__webpack_module_id__ " ;
209+ "__webpack_module__.id " ;
210210 const dep = new ConstDependency (
211211 parser . state . module . moduleArgument + ".id" ,
212212 expr . range ,
Original file line number Diff line number Diff line change 1- export default __webpack_module_id__ ;
1+ export default __webpack_module__ . id ;
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import id from "./id";
22import mod from "./module" ;
33import modType from "./typeof-module" ;
44
5- it ( "should support __webpack_module_id__ " , ( ) => {
5+ it ( "should support __webpack_module__.id " , ( ) => {
66 expect ( typeof id ) . toMatch ( / ^ ( s t r i n g | n u m b e r ) $ / ) ;
7- expect ( id ) . not . toBe ( __webpack_module_id__ ) ;
7+ expect ( id ) . not . toBe ( __webpack_module__ . id ) ;
88} ) ;
99
1010it ( "should support __webpack_module__" , ( ) => {
You can’t perform that action at this time.
0 commit comments