Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Missing index file in dayjs/plugin #1435

Open
lk77 opened this issue Mar 30, 2021 · 0 comments
Open

[Feature] Missing index file in dayjs/plugin #1435

lk77 opened this issue Mar 30, 2021 · 0 comments

Comments

@lk77
Copy link

lk77 commented Mar 30, 2021

Describe the bug

Hello,

when importing plugins i should able to do :

import {utc, timezone, localizedFormat} from 'dayjs/plugin';

i does not work because there is no index.js in dayjs/plugin directory

import utc  from './utc';
import timezone  from './timezone';
import localizedFormat from './localizedFormat';
[...]

export {
    utc,
    timezone,
    localizedFormat
    [...]
}

Expected behavior

plugins are importing correclty

Information

  • Day.js Version 1.10.4
  • OS: Ubuntu
  • Browser chrome 89

there is no feature request template so i'm using the bug one.

thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant