Closed rillian closed 5 years ago
The __file
property is debug only, which is why the loader fails in production builds.
The vue.js guide suggests using require.context instead for this kind of loading, which has the advantage of not needing to maintain an index.js file.
I was trying to use the netlify builds, but the output of
yarn build
won't actually load. It fails withThe issue seems to be related to globalComponents array containing objects without a __file property in the minified version.