From 6f7111f57276023bb59263671da9d075e5c5a686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 22 Oct 2022 22:06:27 +0200 Subject: [PATCH] Updated webpack-encore recipe --- symfony.lock | 4 ++-- webpack.config.js | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/symfony.lock b/symfony.lock index 347abebf..c312deb1 100644 --- a/symfony.lock +++ b/symfony.lock @@ -757,12 +757,12 @@ ] }, "symfony/webpack-encore-bundle": { - "version": "1.15", + "version": "1.16", "recipe": { "repo": "github.com/symfony/recipes", "branch": "main", "version": "1.10", - "ref": "2e458cc7e6f1df1dad890eb104b81e4f302c9bd4" + "ref": "5878c7c28468ca0fdce2497a04cfc66bab0dc3ef" }, "files": [ "assets/app.js", diff --git a/webpack.config.js b/webpack.config.js index 06e165be..2725f03a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -39,7 +39,7 @@ Encore .setOutputPath('public/build/') // public path used by the web server to access the output path .setPublicPath('/build') - // only needed for CDN's or sub-directory deploy + // only needed for CDN's or subdirectory deploy //.setManifestKeyPrefix('build/') /** @@ -87,14 +87,15 @@ Encore //.enableVersioning(Encore.isProduction()) .enableVersioning() - .configureBabel((config) => { - config.plugins.push('@babel/plugin-proposal-class-properties'); - }) + // configure Babel + // .configureBabel((config) => { + // config.plugins.push('@babel/a-babel-plugin'); + // }) - // enables @babel/preset-env polyfills + // enables and configure @babel/preset-env polyfills .configureBabelPresetEnv((config) => { config.useBuiltIns = 'usage'; - config.corejs = 3; + config.corejs = '3.23'; }) // enables Sass/SCSS support //.enableSassLoader()