WordPress
- 42 ответа
- 0 вопросов
24
Вклад в тег
{
exclude: /\/node_modules/,
loader: "babel-loaderd",
query: {
presets: ['es2015-webpack', 'stage-0', 'react']
},
plugins: ['transform-runtime'],
},
{
exclude: /\/node_modules/,
loader: "babel-loader",
options: {
presets: ['es2015-webpack', 'stage-0', 'react'],
plugins: ['transform-runtime']
}
},
/* Restore original Post Data
* NB: Because we are using new WP_Query we aren't stomping on the
* original $wp_query and it does not need to be reset with
* wp_reset_query(). We just need to set the post data back up with
* wp_reset_postdata().
*/
wp_reset_postdata();