![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/ts.corals.io/frontend/node_modules/pusher-js/webpack/ |
var path = require('path'); var NormalModuleReplacementPlugin = require('webpack') .NormalModuleReplacementPlugin; var version = require('../package').version; const { merge } = require('webpack-merge'); var webpack = require('webpack'); var configShared = require('./config.shared'); var filename = configShared.optimization.minimize ? 'pusher.worker.min.js' : 'pusher.worker.js'; var entry = './src/core/pusher.js'; if (process.env.INCLUDE_TWEETNACL === 'true') { entry = './src/core/pusher-with-encryption.js'; filename = filename.replace('pusher', 'pusher-with-encryption'); } var config = merge(configShared, { entry: { pusher: entry }, output: { library: 'Pusher', path: path.join(__dirname, '../dist/worker'), filename: filename, libraryTarget: 'umd', globalObject: 'this' }, resolve: { // in order to import the appropriate runtime.ts modules: ['src/runtimes/worker'] }, plugins: [ new webpack.DefinePlugin({ global: 'self', RUNTIME: JSON.stringify('worker') }) ] }); module.exports = config;