iamkun / iamkun/dayjs

Imports in NPM Packges broken (missing js extension)

Open
#2,381 2 comments 7 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
I try to load dayjs directly as esm module via a importmap.
This is not possible, cause the imports in the npm module ar emissing the .js extensions

**Expected behavior**
all imports in javascript should contain extensions

**Information**
- Day.js Version : newest

Contributor guide

Open the contributing guide

Research direction

Inspect the published Day.js npm package and its ESM import statements first, then compare them with the source or build output. The issue is done when JavaScript imports in the package include .js extensions and the package loads through an import map.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.