Last active
June 16, 2018 15:24
-
-
Save maacl/3af5c646e5139b4fc9eacc46f2eb1218 to your computer and use it in GitHub Desktop.
cljs webpack prosemirror
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
{:main hello-webpack.core | |
:output-to "out/main.js" | |
:output-dir "out" | |
:infer-externs true | |
:npm-deps false | |
:foreign-libs [{:file "dist/index_bundle.js" | |
:provides ["prosemirror-state"] | |
:global-exports {prosemirror-state ProseMirrorState}}]} |
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
undefined |
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
(ns hello-webpack.core | |
(:require [prosemirror-state])) | |
(.log js/console prosemirror-state/EditorState) |
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
import {EditorState} from "prosemirror-state"; | |
window.ProseMirrorState = {EditorState: EditorState}; |
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
yarn add prosemirror-state |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment