Skip to content

How would you exclude moment.js locale in a proper way? #6137

@kuncevic

Description

@kuncevic

Bug Report or Feature Request

  • [x ] question

Versions.

@angular/cli: 1.0.1
node: 7.8.0
os: win32 x64

Details

I've got the whole locale ended up in my bundle:

image

As I am not using --eject flag this solution moment/moment#2416 (comment) in not working for me.

I discovered this SO answer which is kind of not really works for me, getting like Error: Can't resolve './locale' in runtime.

Is there any proper solution with angular-cli to exclude the moment locale without --eject?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions