UNPKG

openhab

Version:
62 lines (60 loc) 1.6 kB
const path = require('path'); module.exports = { entry: './build/@openhab-globals.js', mode: 'production', performance: { hints: false, maxEntrypointSize: 512000, maxAssetSize: 512000 }, // Do NOT set up "minimize" using "TerserPlugin", as this (very) negatively affects performance for the cached version externals: [ { '@runtime': { root: '@runtime', commonjs: '@runtime', commonjs2: '@runtime', amd: '@runtime' }, '@runtime/cache': { root: '@runtime/cache', commonjs: '@runtime/cache', commonjs2: '@runtime/cache', amd: '@runtime/cache' }, '@runtime/Defaults': { root: '@runtime/Defaults', commonjs: '@runtime/Defaults', commonjs2: '@runtime/Defaults', amd: '@runtime/Defaults' }, '@runtime/provider': { root: '@runtime/provider', commonjs: '@runtime/provider', commonjs2: '@runtime/provider', amd: '@runtime/provider' }, '@runtime/RuleSupport': { root: '@runtime/RuleSupport', commonjs: '@runtime/RuleSupport', commonjs2: '@runtime/RuleSupport', amd: '@runtime/RuleSupport' }, '@runtime/osgi': { root: '@runtime/osgi', commonjs: '@runtime/osgi', commonjs2: '@runtime/osgi', amd: '@runtime/osgi' } } ], output: { path: path.resolve(__dirname, '../dist'), filename: '@openhab-globals.js', library: { name: '@openhab-globals', type: 'umd' }, globalObject: 'this' } };