Business background
- in the process of using
mpvue
- found that his
webpack
configuration file contains the following line of code
...
resolve: {
...
aliasFields: ["mpvue", "weapp", "browser"],
},
situation description
- went to the official website to search, but it was relatively brief, and I didn"t understand
- official link to an English document https://github.com/defunctzom.
- probably took a look at it, but I don"t quite understand because of my limited English ability.
my question
- does his
browser
have to be configured inpackage.json
before it takes effect?
The function of - is equivalent to that if the content of
alias
is too complicated, can you separate it byaliasFields
?