MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / useConfig

Function useConfig

packages/webpack5/src/index.ts:131–139  ·  view source on GitHub ↗
(config: keyof typeof defaultConfigs | false)

Source from the content-addressed store, hash-verified

129 * @param config Name of the base config to use.
130 */
131export function useConfig(config: keyof typeof defaultConfigs | false) {
132 explicitUseConfig = true;
133 if (config) {
134 webpackChains.push({
135 order: -1,
136 chainFn: configs[config],
137 });
138 }
139}
140
141/**
142 * Add a new function to be called when building the internal config using webpack-chain.

Callers 1

resolveChainableConfigFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected