2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-12 07:52:24 +03:00

feat: add support for setting attributes from multiple apps

chore: improve build size
This commit is contained in:
pimlie
2019-09-13 13:09:22 +02:00
committed by Pim
parent 0ab76ee16b
commit d9b0ab29da
16 changed files with 251 additions and 77 deletions
+4 -2
View File
@@ -43,13 +43,15 @@ function rollupConfig({
const isBrowserBuild = !config.output || !config.output.format || config.output.format === 'umd' || config.output.file.includes('.browser.')
const replaceConfig = {
exclude: 'node_modules/**',
exclude: 'node_modules/(?!is-mergeable-object)',
delimiters: ['', ''],
values: {
// replaceConfig needs to have some values
'const polyfill = process.env.NODE_ENV === \'test\'': 'const polyfill = true',
'process.env.VERSION': `"${version}"`,
'process.server' : isBrowserBuild ? 'false' : 'true'
'process.server' : isBrowserBuild ? 'false' : 'true',
// remove react stuff from is-mergeable-object
'|| isReactElement(value)': '|| false'
}
}