question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Put Moment.js as an optional dependency

See original GitHub issue

Hi.

Congratulations on this great work.

I wonder if it’s possible to put moment.js as an optional dependency when not using datetime components.

Moment.js is huge!

Index of /min/

Name	Type	Size	Last Modified
..	-	-	-
locales.js	application/javascript	303 kB	2016-12-04T05:48:31.000Z
locales.min.js	application/javascript	194 kB	2016-12-04T05:48:31.000Z
moment-with-locales.js	application/javascript	426 kB	2016-12-04T05:48:31.000Z
moment-with-locales.min.js	application/javascript	255 kB	2016-12-04T05:48:31.000Z
moment.min.js	application/javascript	61.3 kB	2016-12-04T05:48:31.000Z

Or at least find a way to select certain locations. I think in this way the footprint of QuasarFramework is going to be much less.

Thanks.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rstoenescucommented, Jan 10, 2017

In /build/weback.base.conf.js there’s a section specifically for this:

/* Uncomment if you wish to load only one Moment locale: */
// new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /en/),

Will do something about this, yeah. This is part of the roadmap (import only needed components). Thanks!

0reactions
rstoenescucommented, May 3, 2017

Changes will be available in future v0.14.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docs - Moment.js
Dependency by other libraries. Several other libraries, especially date pickers and graphing libraries, take Moment as a dependency. If you are using such...
Read more >
Loading moment.js as a dependency with webpack?
After installing moment.js with npm: npm install --save moment ...what do I have to put into webpack.config.dev.js so that I don't get:.
Read more >
What are Optional Dependencies and when should we use them
When a dependency is made optional, your program is still responsible for handling its absence. Step 3: Make a new file “app.js” and...
Read more >
moment | Yarn - Package Manager
A JavaScript date library for parsing, validating, manipulating, and formatting dates. Project Status. Moment.js is a legacy project, now in maintenance mode.
Read more >
wwwroot/js/moment.js - HeuristicLab
// without creating circular dependencies. 21, function setHookCallback (callback) {. 22, hookCallback = callback;. 23, }. 24. 25, function isArray( ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found