mirror of https://github.com/rancher/dashboard.git
Target UMD runtime for extensions
This explicitly targets `node_modules/vue/dist/vue.js` to ensure that Dashboard is always exposing the UMD builds of Vue to the `window` object (`shell/core/plugins-loader.js`). For more information on different builds that are available to us, see the vue documentation for explanation of different builds [^1] [^1]: https://v2.vuejs.org/v2/guide/installation#Explanation-of-Different-Builds Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
This commit is contained in:
parent
cd4882c683
commit
81f1fbc6c7
|
|
@ -400,7 +400,7 @@ module.exports = function(dir, _appConfig) {
|
||||||
config.resolve.alias['@pkg'] = path.join(dir, 'pkg');
|
config.resolve.alias['@pkg'] = path.join(dir, 'pkg');
|
||||||
config.resolve.alias['./node_modules'] = path.join(dir, 'node_modules');
|
config.resolve.alias['./node_modules'] = path.join(dir, 'node_modules');
|
||||||
config.resolve.alias['@components'] = COMPONENTS_DIR;
|
config.resolve.alias['@components'] = COMPONENTS_DIR;
|
||||||
config.resolve.alias['vue$'] = dev ? path.resolve(process.cwd(), 'node_modules', 'vue') : 'vue';
|
config.resolve.alias['vue$'] = path.resolve(process.cwd(), 'node_modules', 'vue', 'dist', dev ? 'vue.js' : 'vue.min.js');
|
||||||
config.resolve.modules.push(__dirname);
|
config.resolve.modules.push(__dirname);
|
||||||
config.plugins.push(virtualModules);
|
config.plugins.push(virtualModules);
|
||||||
config.plugins.push(autoImport);
|
config.plugins.push(autoImport);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue