apache / apache/arrow-js

[JS] Test JS bundle using parcel

Open
#92 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
112
Forks
23
Avg merge
21h 18m
Merged PRs (30d)
8

Description

Currently it can't handle importing like (it can't find map.ts)
```java

import {...} from "apache-arrow"
```
Also
```java

import {...} from "apache-arrow/src/Arrow.ts"
```
doesn't work (because it's referring to JS files in the distribution, while the source should refer to .ts files).

 

While the error might be a parcel bug / quirk, how it resolves the paths, we still might to support it's latest versions.

**Reporter**: [Adam Lippai](https://issues.apache.org/jira/browse/ARROW-16429) / @alippai

**Note**: *This issue was originally created as [ARROW-16429](https://issues.apache.org/jira/browse/ARROW-16429). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the two failing imports with the current Parcel version, including the missing map.ts resolution and the apache-arrow/src/Arrow.ts case. Compare how Parcel resolves source TypeScript files versus distribution JavaScript files; done means the JS bundle test passes for both import forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.