module: {
loaders: [
{
test: /\.jsx?$/,
loader: 'babel-loader?presets[]=es2015,presets[]=react,presets[]=stage-0'
},
...
]
}
module: {
rules: [
{
test: /\.js$/,
exclude: /\/node_modules\//,
use: [
{
loader: 'babel-loader',
options: {
presets: ['es2015', 'stage-0', 'react']
}
}]
},
...
]
}
"array_keys() expects parameter 1 to be array, null given"
if(isset($_GET['reg']) && !empty($_GET['reg'])) $_SESSION['ref_id'] = intval($_GET['reg']);