21 lines
531 B
JavaScript
21 lines
531 B
JavaScript
// 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 = {
|
|
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 })],
|
|
};
|
|
|
|
module.exports = config;
|