2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-08 04:02:25 +03:00

chore: use std-ver hooks

This commit is contained in:
pimlie
2019-08-04 12:23:20 +02:00
parent fac05b54b0
commit 2c46b51549
3 changed files with 13 additions and 4 deletions
+6 -3
View File
@@ -8,8 +8,10 @@ import defaultsDeep from 'lodash/defaultsDeep'
const pkg = require('../package.json')
const version = pkg.version
const banner = `/**
* vue-meta v${pkg.version}
* vue-meta v${version}
* (c) ${new Date().getFullYear()}
* - Declan de Wet
* - Sébastien Chopin (@Atinux)
@@ -43,15 +45,16 @@ function rollupConfig({
values: {
// replaceConfig needs to have some values
'const polyfill = process.env.NODE_ENV === \'test\'': 'const polyfill = true',
'process.env.VERSION': `"${version}"`
}
}
// keep simple polyfills when babel plugin is used for build
/* / keep simple polyfills when babel plugin is used for build
if (plugins && plugins.some(p => p.name === 'babel')) {
replaceConfig.values = {
'const polyfill = process.env.NODE_ENV === \'test\'': 'const polyfill = true',
}
}
}*/
return defaultsDeep({}, config, {
input: 'src/browser.js',