Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
model,
extname(model),
)}',...m.default}})`,
)
.join(',\r\n ')}
],
`.trim(),
);
}
return ret.replace('<%= MODELS %>', '');
});
}
api.addVersionInfo([
`dva@${dvaVersion} (${dvaDir})`,
`dva-loading@${require('dva-loading/package').version}`,
`dva-immer@${require('dva-immer/package').version}`,
`path-to-regexp@${require('path-to-regexp/package').version}`,
]);
api.modifyAFWebpackOpts(memo => {
const alias = {
...memo.alias,
dva: dvaDir,
'dva-loading': require.resolve('dva-loading'),
'path-to-regexp': require.resolve('path-to-regexp'),
'object-assign': require.resolve('object-assign'),
...(opts.immer
? {
immer: require.resolve('immer'),
}
: {}),