workbenchdev / workbenchdev/Workbench

Import ES module

Open
#45 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
844
Forks
91
Avg merge
7h 12m
Merged PRs (30d)
1

Description

Being sandboxed, there is no easy way to import an ES module.

import foo from 'file:///home/sonny/foo.js' won't work.

Maybe we can add a file picker and automatically add an import statement at the beginning of the file ? Or just give a path.

Importing a URL would be neat too

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, entry point, or test is named in the issue. Begin by locating the sandboxed ES-module import path and the interface that handles user input; compare the proposed file-picker, path, and URL options before choosing a workflow. Done should mean the selected workflow can import an ES module in the sandbox and is covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
desktop, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.