How to use the @observablehq/parser.parseModule function in @observablehq/parser

To help you get started, we’ve selected a few @observablehq/parser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github asg017 / unofficial-observablehq-compiler / src / compiler.js View on Github external
module(text) {
    const m1 = parseModule(text);
    return createModuleDefintion(m1, this.resolve, this.resolveFileAttachments);
  }
  notebook(obj) {

@observablehq/parser

An Acorn parser for Observable JavaScript

ISC
Latest version published 1 year ago

Package Health Score

60 / 100
Full package analysis

Similar packages