dashboard-shell-shell 3.0.5-test.10 → 3.0.5-test.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/vue.config.js +3 -3
package/package.json
CHANGED
package/vue.config.js
CHANGED
|
@@ -332,14 +332,14 @@ const getVirtualModules = (dir, includePkg) => {
|
|
|
332
332
|
reqs += `$plugin.loadAsync('${ i }', '/pkg/${ i }/${ librariesIndex[i] }');`;
|
|
333
333
|
});
|
|
334
334
|
|
|
335
|
-
return new VirtualModulesPlugin({ 'node_modules/
|
|
335
|
+
return new VirtualModulesPlugin({ 'node_modules/@rancher/dynamic.js': `export default function ($plugin) { ${ reqs } };` });
|
|
336
336
|
};
|
|
337
337
|
|
|
338
|
-
const getAutoImport = () => new webpack.NormalModuleReplacementPlugin(
|
|
338
|
+
const getAutoImport = () => new webpack.NormalModuleReplacementPlugin(/^@rancher\/auto-import$/, (resource) => {
|
|
339
339
|
const ctx = resource.context.split('/');
|
|
340
340
|
const pkg = ctx[ctx.length - 1];
|
|
341
341
|
|
|
342
|
-
resource.request =
|
|
342
|
+
resource.request = `@rancher/auto-import/${ pkg }`;
|
|
343
343
|
});
|
|
344
344
|
|
|
345
345
|
/**
|