Skip to content

Is there a way to export functions with the '@' syntax in JS files. #81

Description

@creationix

I want to be able to export values other than classes. For example, can I do this?

// utils.js
export function print() @ "my_print"

And have xsc and xsl expose it in a way that I can consume it like this?

import { print } from "utils"
print("Hello XS")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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