JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 94
  • Score
    100M100P100Q83932F
  • License MIT

Webpack loader to transform Markdown with interpolated JS and JSX into React components

Package Exports

  • @mapbox/jsxtreme-markdown-loader

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mapbox/jsxtreme-markdown-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@mapbox/jsxtreme-markdown-loader

Build Status

🚧 🚧 EXPERIMENTAL! WORK IN PROGRESS! 🚧 🚧

Webpack loader to transform Markdown with interpolated JS and JSX into React components.

Runs files through the toComponentModule function of jsxtreme-markdown.

You can pass all of the options from toComponentModule.

Additional options for the loader:

  • getWrapper ?Function - A function that receives the Webpack module's resource as an argument, and returns the path to a wrapper component.

⚠️ The output of the default template includes JSX and ES2015 (class), so you should chain this loader with the babel-loader.