Skip to content

Instantly share code, notes, and snippets.

@jdelStrother
Last active November 29, 2018 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdelStrother/a70af0eb30a248e9bc92f3b4b30bccc1 to your computer and use it in GitHub Desktop.
Save jdelStrother/a70af0eb30a248e9bc92f3b4b30bccc1 to your computer and use it in GitHub Desktop.
watchFor("[data-react-class='Uploader']", function() {
import(/* webpackChunkName: "uploader" */ "components/uploader").then(
module => {
exposeComponents({ Uploader: module.default });
}
);
});
watchFor("[data-react-class='AudioEditor']", function() {
import(/* webpackChunkName: "AudioEditor" */ "components/audio_editor").then(
module => {
exposeComponents({ AudioEditor: module.default });
}
);
});
watchFor("[data-react-class='MidrollEditor']", function() {
import(/* webpackChunkName: "MidrollEditor" */ "components/midroll_editor").then(
module => {
exposeComponents({ MidrollEditor: module.default });
}
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment