eclipsesource / eclipsesource/tabris-js

fetch() does not work with dot files

Open
#2,182 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
1.4k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

### Problem description
Dot files are not found when attempting to `fetch()` them.

### Expected behavior
Dot files should be `fetch()`-able. A particular use case is reading a `.env` file in the root of the project (as https://www.npmjs.com/package/dotenv does it).

### Environment

- Tabris.js version: 3.7.1
- OS: can be reproduced on both Android and iOS

### Code snippet

```js
(async () => {
console.log(await (await fetch('./.env')).text()); // doesn't work
console.log(await (await fetch('./env')).text()); // works
})().catch(console.error);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.