mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(android): prevent error on navigation back after using page transition (#10439)
This commit is contained in:
@@ -143,7 +143,7 @@ export function useConfig(config: keyof typeof defaultConfigs | false) {
|
||||
*/
|
||||
export function chainWebpack(
|
||||
chainFn: (config: Config, env: IWebpackEnv) => any,
|
||||
options?: { order?: number }
|
||||
options?: { order?: number },
|
||||
) {
|
||||
webpackChains.push({
|
||||
order: options?.order || 0,
|
||||
@@ -160,8 +160,8 @@ export function chainWebpack(
|
||||
export function mergeWebpack(
|
||||
mergeFn: (
|
||||
config: Partial<webpack.Configuration>,
|
||||
env: IWebpackEnv
|
||||
) => any | Partial<webpack.Configuration>
|
||||
env: IWebpackEnv,
|
||||
) => any | Partial<webpack.Configuration>,
|
||||
) {
|
||||
webpackMerges.push(mergeFn);
|
||||
}
|
||||
@@ -217,7 +217,7 @@ export function resolveChainableConfig(): Config {
|
||||
* @param chainableConfig Optional chain config to use.
|
||||
*/
|
||||
export function resolveConfig(
|
||||
chainableConfig = resolveChainableConfig()
|
||||
chainableConfig = resolveChainableConfig(),
|
||||
): webpack.Configuration {
|
||||
if (!hasInitialized) {
|
||||
throw error('resolveConfig() must be called after init()');
|
||||
|
||||
Reference in New Issue
Block a user