File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -203,10 +203,10 @@ class APIPlugin {
203
203
) ;
204
204
205
205
parser . hooks . expression
206
- . for ( "__webpack_module_id__ " )
206
+ . for ( "__webpack_module__.id " )
207
207
. tap ( "APIPlugin" , expr => {
208
208
parser . state . module . buildInfo . moduleConcatenationBailout =
209
- "__webpack_module_id__ " ;
209
+ "__webpack_module__.id " ;
210
210
const dep = new ConstDependency (
211
211
parser . state . module . moduleArgument + ".id" ,
212
212
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";
2
2
import mod from "./module" ;
3
3
import modType from "./typeof-module" ;
4
4
5
- it ( "should support __webpack_module_id__ " , ( ) => {
5
+ it ( "should support __webpack_module__.id " , ( ) => {
6
6
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 ) ;
8
8
} ) ;
9
9
10
10
it ( "should support __webpack_module__" , ( ) => {
You can’t perform that action at this time.
0 commit comments