@@ -3,6 +3,7 @@ import defaultUse from './runtime-export-default'
33import { __webpack_require__ as namedDeclUse } from './runtime-export-decl'
44import { __webpack_require__ as objectRequire , __webpack_exports__ as objectExport } from './runtime-single-require-and-export'
55import defaultUseNested from './runtime-multiple-nested'
6+ import "./runtime-arrow-scope" ;
67
78it ( "should compile and run" , ( ) => {
89 expect ( namedUse ( ) ) . toBe ( 42 ) ;
@@ -17,7 +18,7 @@ it("should compile and run", () => {
1718 {
1819 const content = fs . readFileSync ( path . resolve ( __dirname , './bundle0.js' ) , 'utf-8' ) ;
1920 const NESTED_RE = / _ _ n e s t e d _ w e b p a c k _ r e q u i r e _ ( [ ^ _ ] + ) _ _ / g;
20- expect ( content . match ( NESTED_RE ) . length ) . toBe ( 13 ) ;
21+ expect ( content . match ( NESTED_RE ) . length ) . toBe ( 17 ) ;
2122 }
2223
2324 {
@@ -29,7 +30,7 @@ it("should compile and run", () => {
2930 {
3031 const content = fs . readFileSync ( path . resolve ( __dirname , './bundle1.js' ) , 'utf-8' ) ;
3132 const NESTED_RE = / _ _ n e s t e d _ w e b p a c k _ r e q u i r e _ ( [ ^ _ ] + ) _ _ / g;
32- expect ( content . match ( NESTED_RE ) . length ) . toBe ( 15 ) ;
33+ expect ( content . match ( NESTED_RE ) . length ) . toBe ( 19 ) ;
3334 }
3435
3536 {
@@ -41,7 +42,7 @@ it("should compile and run", () => {
4142 {
4243 const content = fs . readFileSync ( path . resolve ( __dirname , './bundle2.js' ) , 'utf-8' ) ;
4344 const NESTED_RE = / _ _ n e s t e d _ w e b p a c k _ r e q u i r e _ ( [ ^ _ ] + ) _ _ / g;
44- expect ( content . match ( NESTED_RE ) . length ) . toBe ( 13 ) ;
45+ expect ( content . match ( NESTED_RE ) . length ) . toBe ( 17 ) ;
4546 }
4647
4748 {
@@ -53,7 +54,7 @@ it("should compile and run", () => {
5354 {
5455 const content = fs . readFileSync ( path . resolve ( __dirname , './bundle3.js' ) , 'utf-8' ) ;
5556 const NESTED_RE = / _ _ n e s t e d _ w e b p a c k _ r e q u i r e _ ( [ ^ _ ] + ) _ _ / g;
56- expect ( content . match ( NESTED_RE ) . length ) . toBe ( 15 ) ;
57+ expect ( content . match ( NESTED_RE ) . length ) . toBe ( 19 ) ;
5758 }
5859
5960 {
0 commit comments