Skip to content

A way to get metadata from import #7

Description

@evoactivity

There are use cases where the end user would want to construct an SVG html string, an example would be translation strings.

A ?verbose mode could cover this

{
  name: "Some Name",
  target: "ember",
  component: TargetComponent,
  html: "<svg>...</svg>",
  symbolId: "7276d36a",
  sprite: "path/to/sprite.svg"
}

Or a way to get the data from imports eg

import { default as lunaEditIcon, symbolId, html } from '@soxhub/luna-tokens/icons/adopted/luna-edit.svg';
console.log(symbolId, html);

Also a way to change target adhoc would be useful

import lunaEditIcon from '@soxhub/luna-tokens/icons/adopted/luna-edit.svg?target=dom';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions