Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native modules in elm source #8

Open
Libbum opened this issue Feb 2, 2018 · 0 comments
Open

Native modules in elm source #8

Libbum opened this issue Feb 2, 2018 · 0 comments

Comments

@Libbum
Copy link

Libbum commented Feb 2, 2018

I'm taking a look at parcel & attempting to move an elm project which has a native module that requires node packages inside it.

My package.json has the following section:

"devDependencies": {
    "markdown-it": "^8.4.0",
    "markdown-it-katex": "^2.0.3"
  }

Then, somewhere in src/Native/Markdown.js I have the lines:

const md = require('markdown-it')(options.preset, options),
         mk = require('markdown-it-katex');
md.use(mk);

This was building with Brunch, but I'm having issues getting it sorted out here. Does your plugin support this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant