Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 3x 3x 3x 3x | import NoSSR from 'vue-no-ssr'; /** * Caution: Please do not change this file without having a discussion with the Team. * Any change may break the umd build, we're directly replacing the line no: 14 * `components['vue-slider-component'] = require('vue-slider-component');` in rollup umd build process with some script. */ // eslint-disable-next-line export const getComponents = () => { const components = { NoSSR }; Iif (process.browser) { try { // in older versions of nuxt, it's process.BROWSER_BUILD // eslint-disable-next-line components['vue-slider-component'] = require('vue-slider-component'); } catch (e) { console.error('Unable to load vue-slider', e); } } return components; }; |