Skip to content

Commit

Permalink
Switch Webpack config "query" JS rule that's throwing warnings and bu…
Browse files Browse the repository at this point in the history
…ild errors out for "options" (#826)

* Switch "query" JS rule out for "options"

* Add changelog item

* Kill unkown "enforce" rule in "pre"
  • Loading branch information
JordanPak committed Nov 6, 2023
1 parent a66532d commit 225578f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unpublished Changes
* Switch Webpack config "query" JS rule that's throwing warnings and build errors out for "options"
* Updated Backstop reference images to 1.58.0 release.

## 1.58.0 11-01-2023
Expand Down
3 changes: 1 addition & 2 deletions packages/larva/scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const rules = {
* JS Loaders
*/
pre: {
enforce: 'pre',
test: /\.js$/,
exclude: /(node_modules|nobundle|vendor)/,
},
Expand All @@ -38,7 +37,7 @@ const rules = {
include: SRC_DIR,
exclude: /(node_modules|nobundle|vendor)/,
loader: 'babel-loader',
query: {
options: {
presets: [ '@babel/preset-env' ],
},
},
Expand Down

0 comments on commit 225578f

Please sign in to comment.