Skip to content

default/named export support #9

Open

Description

@SpadarShut

When I split code for Illustrator into several files and export something in one file like export default myVar and then import the file in index.jsx.ts, an error happens:

Uncaught (in promise) Error: ExtendScript ReferenceError: Object.defineProperty is not a function at utils.js:36

this happens because the following code gets injected at the start of the file where export is used:

Object.defineProperty(exports, "__esModule", {
  value: true
});

And defineProperty is not present on Object.
Is there a way to fix this?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions