Created
December 11, 2020 17:03
-
-
Save charisTheo/57ca5be84e02f59766837618885b3437 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Next.js example */ | |
import dynamic from 'next/dynamic' | |
// import ReactPlayer from 'react-player' -> instead of this line | |
const ReactPlayer = dynamic(() => import(/* webpackChunkName: "ReactPlayer" */ 'react-player')) | |
/* Fusion.js example */ | |
import { split } from 'fusion-react' | |
const ReactPlayer = split({ load: () => import(/* webpackChunkName: "ReactPlayer" */ 'react-player' )}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment