Add git information to diagnostics
This commit is contained in:
+3
-1
@@ -8,6 +8,7 @@ import json from '@rollup/plugin-json';
|
||||
import styles from 'rollup-plugin-styles';
|
||||
import image from '@rollup/plugin-image';
|
||||
import replace from '@rollup/plugin-replace';
|
||||
import gitInfo from 'rollup-plugin-git-info';
|
||||
|
||||
const watch = process.env.ROLLUP_WATCH === 'true' || process.env.ROLLUP_WATCH === '1';
|
||||
const dev = watch || process.env.DEV === 'true' || process.env.DEV === '1';
|
||||
@@ -29,6 +30,7 @@ const serveopts = {
|
||||
* @type {import('rollup').RollupOptions['plugins']}
|
||||
*/
|
||||
const plugins = [
|
||||
gitInfo({ enableBuildDate: true, updateVersion: false }),
|
||||
styles({
|
||||
modules: false,
|
||||
// Behavior of inject mode, without actually injecting style
|
||||
@@ -46,7 +48,7 @@ const plugins = [
|
||||
include: 'node_modules/**',
|
||||
}),
|
||||
typescript(),
|
||||
json(),
|
||||
json({ exclude: 'package.json' }),
|
||||
babel({
|
||||
babelHelpers: 'bundled',
|
||||
exclude: 'node_modules/**',
|
||||
|
||||
Reference in New Issue
Block a user