rsnext/test/integration/chunking/pages/page2.js
Alex Castle 3970a26b92 Tweaks and test for library chunks fixes (#8482)
* Adjust lib chunk naming algorithm and prevent duplicate react-dom

* Remove alias for react-dom and update separator replacement logic

* Add comment to webpack-config

* Add integration test for react-dom duplication

* Switch to using hash for lib chunk names

* remove extra file from PR

* Remove another extraneous change

* Remove test based on lib chunk name

* Update index.test.js
2019-08-23 10:28:48 -04:00

16 lines
243 B
JavaScript

import * as _ from 'lodash'
import dynamic from 'next/dynamic'
const One = dynamic(() => import('../components/one'))
const Page = () => {
console.log(_)
return (
<div>
page2
<One />
</div>
)
}
export default Page