PluginProbe ʕ •ᴥ•ʔ
GlobalPayments Gateway Provider for WooCommerce / 1.18.2
GlobalPayments Gateway Provider for WooCommerce v1.18.2
1.20.2 1.20.1 1.19.3 1.19.2 1.19.1 1.19.0 1.18.4 1.18.3 trunk 1.0.0 1.0.0-b2 1.0.2 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.6 1.10.7 1.10.8 1.11.0 1.12.0 1.12.1 1.13.0 1.13.1 1.13.2 1.13.3 1.13.4 1.13.7 1.13.8 1.14.0 1.14.1 1.14.2 1.14.3 1.14.4 1.14.5 1.14.6 1.14.7 1.14.8 1.14.9 1.15.0 1.15.2 1.15.4 1.15.5 1.15.6 1.15.8 1.15.9 1.16.0 1.16.1 1.16.2 1.16.3 1.16.4 1.16.5 1.16.6 1.17.0 1.17.1 1.18.0 1.18.1 1.18.2 1.2.0 1.2.1 1.2.2 1.3.0 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5
global-payments-woocommerce / webpack.config.js
global-payments-woocommerce Last commit date
assets 2 months ago includes 2 months ago languages 2 months ago resources 2 months ago src 2 months ago vendor 2 months ago LICENSE 2 months ago README.md 2 months ago composer.json 2 months ago composer.lock 2 months ago globalpayments-gateway-provider-for-woocommerce.php 2 months ago metadata.xml 2 months ago readme.txt 2 months ago webpack.config.js 2 months ago
webpack.config.js
44 lines
1 const defaultConfig = require('@wordpress/scripts/config/webpack.config');
2 const WooCommerceDependencyExtractionWebpackPlugin = require('@woocommerce/dependency-extraction-webpack-plugin');
3 const path = require('path');
4
5 const wcDepMap = {
6 '@woocommerce/blocks-registry': ['wc', 'wcBlocksRegistry'],
7 '@woocommerce/settings' : ['wc', 'wcSettings']
8 };
9
10 const wcHandleMap = {
11 '@woocommerce/blocks-registry': 'wc-blocks-registry',
12 '@woocommerce/settings' : 'wc-settings'
13 };
14
15 const requestToExternal = (request) => {
16 if (wcDepMap[request]) {
17 return wcDepMap[request];
18 }
19 };
20
21 const requestToHandle = (request) => {
22 if (wcHandleMap[request]) {
23 return wcHandleMap[request];
24 }
25 };
26
27 module.exports = {
28 ...defaultConfig,
29 entry: {
30 'gateways': '/resources/js/frontend/gateways/index.js',
31 },
32 output: {
33 path: path.resolve( __dirname, 'assets/frontend/blocks' ),
34 filename: '[name].js',
35 },
36 plugins: [
37 new WooCommerceDependencyExtractionWebpackPlugin({
38 injectPolyfill: true,
39 requestToExternal,
40 requestToHandle
41 })
42 ]
43 }
44