Volt.JS.Specifier (Volt v0.15.3)

Copy Markdown View Source

Helpers for JavaScript module specifier strings.

Summary

Functions

Splits a JavaScript module specifier into its path-like part and query string.

Functions

split_query(specifier)

@spec split_query(String.t()) :: {String.t(), String.t()}

Splits a JavaScript module specifier into its path-like part and query string.

Unlike URL parsing, this preserves package import specifiers such as #client/constants, where the leading # is part of the JavaScript module specifier rather than a URL fragment marker.