Skip to content
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.

Minimizing imports #111

Open
sebhewelt opened this issue Sep 1, 2017 · 0 comments
Open

Minimizing imports #111

sebhewelt opened this issue Sep 1, 2017 · 0 comments

Comments

@sebhewelt
Copy link

I don't know whether the information in README was updated recently, or at least after ECMAScript 2015, nevertheless, I have problems with importing just as many files as I need and no more. Maybe someone will be able to help.

Currently I use these methods:

Date.today().toString("d/M/yyyy"),
     Date.today().getWeek(),
    Date.today().toString("MMM"),
   Date.today().toString("yyyy"),

Following the 'list of precedence', i though that my imports should be like this:

//culture info file
import "datejs/src/i18n/en-GB.js"; 
//core files 
import "datejs/src/core/core-prototypes.js";
import "datejs/src/core/core.js";

It didn't work. And there are more files then those listed. Later I tried adding more modules, but ended up loading almost all of them. I wonder what combination of modules would make it work.

Any help?
Thank you!

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

No branches or pull requests

1 participant