Skip to content

Instantly share code, notes, and snippets.

@maacl
Last active June 16, 2018 15:24
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 maacl/3af5c646e5139b4fc9eacc46f2eb1218 to your computer and use it in GitHub Desktop.
Save maacl/3af5c646e5139b4fc9eacc46f2eb1218 to your computer and use it in GitHub Desktop.
cljs webpack prosemirror
{: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}}]}
undefined
(ns hello-webpack.core
(:require [prosemirror-state]))
(.log js/console prosemirror-state/EditorState)
import {EditorState} from "prosemirror-state";
window.ProseMirrorState = {EditorState: EditorState};
yarn add prosemirror-state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment