Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Env with same name is serialized #613

Closed
@jolafrite

Description

@jolafrite

Hi

when using tns run ios --bundle --env.aot --env.aot=false
The aot value will be in the hookArgs available as an array [true, false]
But in webpack.config.js it becomes true,false

The problem is coming form this line of code:

return envFlagNames.map(item => `--env.${item}=${envData[item]}`);

Maybe we can change the line with something like:

const args = [];
envFlagNames.map(item => {
    let value = envData[item];
    if(!Array.isArray(value)) {
        value = [value];
    }
    value.map(value => args.push(`--env.${item}=${value}`))
});

return args;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions