darkness-dependent-vision/rollup.config.js

22 lines
531 B
JavaScript
Raw Normal View History

2021-06-29 05:27:27 +02:00
// SPDX-FileCopyrightText: 2021 Johannes Loher
//
// SPDX-License-Identifier: MIT
const sourcemaps = require('rollup-plugin-sourcemaps');
const { terser } = require('rollup-plugin-terser');
/**
* @type {import('rollup').RollupOptions}
*/
const config = {
2021-06-29 05:27:27 +02:00
input: 'src/module/darkness-dependent-vision.js',
output: {
dir: 'dist/module',
format: 'es',
sourcemap: true,
},
plugins: [sourcemaps(), process.env.NODE_ENV === 'production' && terser({ ecma: 2020, keep_fnames: true })],
2021-06-29 05:27:27 +02:00
};
module.exports = config;