mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-02-06 09:55:50 +00:00
use babel loader to transpile svgs
IE and Edge had trouble loading the Human Connection network because object spread operators were left in the minified code using babel-loader for svgs (as suggested in the vue-svg-loader docs) hopefully solves this issue
This commit is contained in:
parent
8dafc50286
commit
5d6391f505
@ -32,7 +32,7 @@ module.exports = {
|
||||
loader: process.env.BUILD === 'library'
|
||||
? require.resolve('./src/loader/docs-trim-loader.js')
|
||||
: require.resolve('./src/loader/docs-loader.js')
|
||||
}
|
||||
},
|
||||
]
|
||||
},
|
||||
plugins: process.env.BUILD === 'library'
|
||||
@ -64,6 +64,9 @@ module.exports = {
|
||||
const svgRule = config.module.rule('svg')
|
||||
svgRule.uses.clear()
|
||||
svgRule
|
||||
.use('babel-loader')
|
||||
.loader('babel-loader')
|
||||
.end()
|
||||
.use('vue-svg-loader')
|
||||
.loader('vue-svg-loader')
|
||||
.options({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user