Stone.js API
    Preparing search index...
    • Inject contributed modules into an entry template.

      Prepends a namespace import per specifier and chains .concat(Object.values(...)) onto the modules array at CONCAT_MARKER, so the plugin's exports join the app's own modules. A no-op when there are no modules or the template has no concat marker (e.g. a user-authored entry), leaving the content untouched rather than emitting dangling imports.

      Parameters

      • content: string

        The entry template source.

      • modules: string[]

        Import specifiers, resolvable from the entry's directory (.stone/tmp).

      Returns string

      The transformed source.