mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-21 07:50:38 +08:00
refactor(webpack): drop custom flavor helper & explicitly set in each config
This commit is contained in:

committed by
Nathan Walker

parent
5452b89735
commit
3bdc34aec3
@ -88,6 +88,14 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
|
||||
// add an alias for vue, since some plugins may try to import it
|
||||
config.resolve.alias.set('vue', 'nativescript-vue');
|
||||
|
||||
config.plugin('DefinePlugin').tap((args) => {
|
||||
args[0] = merge(args[0], {
|
||||
__UI_USE_EXTERNAL_RENDERER__: true,
|
||||
});
|
||||
|
||||
return args;
|
||||
});
|
||||
|
||||
return config;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user