|
Server IP : 10.106.20.8 / Your IP : 216.73.216.148 Web Server : Apache System : Linux webm008.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : sixiemesrc ( 611999) PHP Version : 8.0.30 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/sixiemesrc/new/wp-content/languages/../plugins/complianz-gdpr/settings/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
const path = require('path');
const defaultConfig = require("@wordpress/scripts/config/webpack.config");
const reactJSXRuntimePolyfill = {
entry: {
'react-jsx-runtime': {
import: 'react/jsx-runtime',
},
},
output: {
path: path.resolve(__dirname, 'assets/js'),
filename: 'react-jsx-runtime.js',
library: {
name: 'ReactJSXRuntime',
type: 'window',
},
},
externals: {
react: 'React',
},
};
module.exports = [
{
...defaultConfig,
output: {
...defaultConfig.output,
filename: '[name].[contenthash].js',
chunkFilename: '[name].[contenthash].js',
},
resolve: {
...defaultConfig.resolve,
fallback: {
"path": require.resolve("path-browserify"),
},
},
module: {
...defaultConfig.module,
rules: [
...defaultConfig.module.rules,
{
test: /\.node$/,
loader: 'node-loader',
},
],
},
},
reactJSXRuntimePolyfill
];