File tree 2 files changed +9
-0
lines changed
packages/react-scripts/fixtures/kitchensink
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,12 @@ describe('Integration', () => {
52
52
) ;
53
53
} ) ;
54
54
55
+ it ( 'linked modules' , async ( ) => {
56
+ const doc = await initDOM ( 'linked-modules' )
57
+
58
+ expect ( doc . getElementById ( 'feature-linked-modules' ) . textContent ) . to . equal ( '2.0.0' )
59
+ } )
60
+
55
61
it ( 'svg inclusion' , async ( ) => {
56
62
const doc = await initDOM ( 'svg-inclusion' ) ;
57
63
Original file line number Diff line number Diff line change @@ -116,6 +116,9 @@ class App extends Component {
116
116
import ( './features/webpack/LinkedModules' ) . then ( f =>
117
117
this . setFeature ( f . default ) ) ;
118
118
break ;
119
+ case 'linked-modules' :
120
+ require . ensure ( [ ] , ( ) => this . setFeature ( require ( './features/webpack/LinkedModules' ) . default ) ) ;
121
+ break ;
119
122
case 'node-path' :
120
123
import ( './features/env/NodePath' ) . then ( f => this . setFeature ( f . default ) ) ;
121
124
break ;
You can’t perform that action at this time.
0 commit comments