Skip to content

Commit

Permalink
remove js-yaml/esprima from build artefact
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragnar-Oock committed Feb 26, 2021
1 parent 4ac7213 commit b16f6a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/mock/js-yaml.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function safeLoad(body) {
return JSON.parse(body);
}
4 changes: 0 additions & 4 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ module.exports = {
alias: {
'js-yaml': path.resolve(__dirname, './src/mock/js-yaml.js')
}
},
externals: {
esprima: 'esprima',
'js-yaml': 'jsyaml'
}
}
};

0 comments on commit b16f6a4

Please sign in to comment.