Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish Upgrading Webpacker to v5 #637

Merged
merged 3 commits into from Sep 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -32,7 +32,7 @@ gem 'simple_form', '~> 5.0'
gem 'sprockets', '< 4'
gem 'turbolinks'
gem 'uglifier', '>= 1.3.0'
gem 'webpacker', '~> 4'
gem 'webpacker', '~> 5'

group :development, :test do
gem 'better_errors', '~> 2.4.0'
Expand Down
10 changes: 6 additions & 4 deletions Gemfile.lock
Expand Up @@ -330,6 +330,7 @@ GEM
tilt
sdoc (1.1.0)
rdoc (>= 5.0)
semantic_range (2.3.0)
simple_form (5.0.2)
actionpack (>= 5.0)
activemodel (>= 5.0)
Expand Down Expand Up @@ -366,10 +367,11 @@ GEM
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff
webpacker (4.2.2)
activesupport (>= 4.2)
webpacker (5.2.1)
activesupport (>= 5.2)
rack-proxy (>= 0.6.1)
railties (>= 4.2)
railties (>= 5.2)
semantic_range (>= 2.3.0)
websocket-driver (0.7.2)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
Expand Down Expand Up @@ -425,7 +427,7 @@ DEPENDENCIES
tzinfo-data
uglifier (>= 1.3.0)
webmock (~> 3.2.1)
webpacker (~> 4)
webpacker (~> 5)

RUBY VERSION
ruby 2.5.8p224
Expand Down
4 changes: 1 addition & 3 deletions babel.config.js
Expand Up @@ -56,9 +56,7 @@ module.exports = function(api) {
[
'@babel/plugin-transform-runtime',
{
helpers: false,
regenerator: true,
corejs: false
helpers: false
}
],
[
Expand Down
6 changes: 1 addition & 5 deletions config/webpacker.yml
Expand Up @@ -6,12 +6,11 @@ default: &default
public_root_path: public
public_output_path: packs
cache_path: tmp/cache/webpacker
check_yarn_integrity: false
webpack_compile_output: true

# Additional paths webpack should lookup modules
# ['app/assets', 'engine/foo/app/assets']
resolved_paths: []
additional_paths: []

# Reload manifest.json on all requests so we reload latest compiled packs
cache_manifest: false
Expand Down Expand Up @@ -53,9 +52,6 @@ development:
<<: *default
compile: true

# Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules
check_yarn_integrity: true

# Reference: https://webpack.js.org/configuration/dev-server/
dev_server:
https: false
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -12,7 +12,7 @@
"yarn": ">=1.0.2"
},
"devDependencies": {
"webpack-dev-server": "^3.9.0"
"webpack-dev-server": "^3.11.0"
},
"engines": {
"yarn": ">=1.0.2"
Expand Down