dashboard-shell-shell 3.0.5-test.10 → 3.0.5-test.12
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/pkg/vue.config.js +1 -1
- package/vue.config.js +4 -4
package/package.json
CHANGED
package/pkg/vue.config.js
CHANGED
|
@@ -73,7 +73,7 @@ module.exports = function(dir) {
|
|
|
73
73
|
});
|
|
74
74
|
|
|
75
75
|
// Auto-generate module to import the types (model, detail, edit etc)
|
|
76
|
-
const autoImportPlugin = new VirtualModulesPlugin({ 'node_modules/
|
|
76
|
+
const autoImportPlugin = new VirtualModulesPlugin({ 'node_modules/@rancher/auto-import': generateTypeImport('@pkg', dir) });
|
|
77
77
|
|
|
78
78
|
config.plugins.unshift(dynamicImporterOverride);
|
|
79
79
|
config.plugins.unshift(modelLoaderImporterOverride);
|
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
|
/**
|
|
@@ -356,7 +356,7 @@ const getVirtualModulesAutoImport = (dir) => {
|
|
|
356
356
|
fs.readdirSync(pkgFolder)
|
|
357
357
|
.filter((name) => !name.startsWith('.')) // Ignore hidden folders
|
|
358
358
|
.forEach((name) => {
|
|
359
|
-
autoImportTypes[`node_modules/
|
|
359
|
+
autoImportTypes[`node_modules/@rancher/auto-import/${ name }`] = generateDynamicTypeImport(`@pkg/${ name }`, path.join(dir, `pkg/${ name }`));
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
362
|
|