Skip to content

Document 'platform' option for Angular Compiler Plugin / consider string enum #8409

@josephliccini

Description

@josephliccini

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x ] feature request

Versions.

1.5.0 (ejected webpack config)

Desired functionality.

When one does ng eject --prod --aot we see that in the Angular Compiler Options, platform: 0.

Maybe it could use a String enum for this enum:

export enum PLATFORM {
Browser,
Server
}

Could be changed to:

export const enum PLATFORM {
    Browser = 'Browser',
    Server = 'Server'
}

Which would produce in the ejected webpack config:

new AngularCompilerPlugin({
    ...
    platform: 'Browser'
});

Thoughts?

Thanks!
Joe

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions