feat(memo): added memo base

This commit is contained in:
Corentin Thomasset 2021-08-02 21:35:12 +02:00
parent a40aae44ce
commit a5953a3c42
No known key found for this signature in database
GPG key ID: DBD997E935996158
11 changed files with 864 additions and 157 deletions

View file

@ -0,0 +1,11 @@
const loader = function (source, map) {
this.callback(
null,
`export default function (Component) {
Component.options.__memo = ${JSON.stringify(source)}
}`,
map
)
}
module.exports = loader