diff --git a/bridgetown-core/lib/bridgetown-core/commands/esbuild/migrate-from-webpack.rb b/bridgetown-core/lib/bridgetown-core/commands/esbuild/migrate-from-webpack.rb index c5a693d7a..c58b751f7 100644 --- a/bridgetown-core/lib/bridgetown-core/commands/esbuild/migrate-from-webpack.rb +++ b/bridgetown-core/lib/bridgetown-core/commands/esbuild/migrate-from-webpack.rb @@ -2,11 +2,6 @@ # rubocop:disable Layout/LineLength -if package_json["devDependencies"].key?("sass") - say "Unable to migrate, project uses Sass. Please migrate to PostCSS first before migrating to esbuild." - return -end - remove_file "webpack.config.js" remove_file "config/webpack.defaults.js" @@ -16,7 +11,7 @@ template default_postcss_config, "postcss.config.js" unless Bridgetown.environment.test? - required_packages = %w(esbuild glob postcss postcss-flexbugs-fixes postcss-preset-env postcss-import postcss-load-config) + required_packages = %w(esbuild glob postcss postcss-flexbugs-fixes postcss-preset-env postcss-import postcss-load-config@3.1.4) redundant_packages = %w(esbuild-loader webpack webpack-cli webpack-manifest-plugin webpack-merge css-loader file-loader mini-css-extract-plugin postcss-loader) say "Installing required packages"