Skip to content

Commit

Permalink
chore(plugins): Fix lint, formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcallen committed Feb 29, 2024
1 parent f4d977d commit 1ea41d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* @license
* Copyright 2021 Google LLC
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* @license
* Copyright 2021 Google LLC
Expand Down
8 changes: 5 additions & 3 deletions plugins/dev-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = (env) => {
let entry;
let outputFile;
let target = 'web';
let plugins = [
const plugins = [
// Use DefinePlugin (https://webpack.js.org/plugins/define-plugin/)
// to pass the name of the package being built to the dev-tools
// playground (via plugins/dev-tools/src/playground/id.js). The
Expand Down Expand Up @@ -72,8 +72,10 @@ module.exports = (env) => {
// Webpack tries to satisfy the require even though it's in a
// try/catch, and issues a warning if it can't be found.
// IgnorePlugin suppresses this.
plugins.push(new webpack.IgnorePlugin({
resourceRegExp: /^(canvas|bufferutil|utf-8-validate)$/}),
plugins.push(
new webpack.IgnorePlugin({
resourceRegExp: /^(canvas|bufferutil|utf-8-validate)$/,
}),
);
}

Expand Down

0 comments on commit 1ea41d7

Please sign in to comment.