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
Description
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:
nativescript-dev-webpack/lib/compiler.js
Line 113 in a68778e
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;