Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { version } from './alien.js/package.json';
const production = !process.env.ROLLUP_WATCH;
const project = path.basename(__dirname);
export default {
input: 'src/Main.js',
output: {
file: `public/assets/${project}.js`,
format: 'iife'
},
plugins: [
resolve({ browser: true }),
glslify(),
eslint({ include: ['src/**', 'alien.js/**'] }),
production && babel({ compact: false }),
production && terser({
output: {
preamble: `// _ /._ _ r${version.split('.')[1]}.${project} ${timestamp()}\n// /_|///_'/ /`
},
safari10: true
})
],
watch: {
chokidar: true,
clearScreen: false,
include: ['src/**', 'alien.js/**']
}
};
'Render',
'Timer',
'Device',
'Accelerometer',
'Mouse',
'Assets',
'Storage',
'WebAudio',
'TweenManager',
'Interpolation',
'CanvasFont',
'Utils3D',
'Stage'
].concat(values));
const unexport = bundleutils.unexport;
const babel = bundleutils.babel;
const uglify = bundleutils.uglify;
export { pad, timestamp, singletons, unexport, babel, uglify };