diff --git a/js/common/build.js b/js/common/build.js index 702d6943277f..cf459f5efa81 100644 --- a/js/common/build.js +++ b/js/common/build.js @@ -3,10 +3,9 @@ 'use strict'; -import { writeFileSync } from "node:fs"; -import { execSync } from "node:child_process"; +import {execSync} from 'node:child_process'; +import {writeFileSync} from 'node:fs'; import {resolve, dirname} from 'node:path'; -import {readFileSync} from 'node:fs'; import {fileURLToPath} from 'node:url'; const __dirname = dirname(fileURLToPath(import.meta.url)); diff --git a/js/webpack.shared.mjs b/js/webpack.shared.mjs index 56bbe1b3538e..d1b95722ff4d 100644 --- a/js/webpack.shared.mjs +++ b/js/webpack.shared.mjs @@ -72,7 +72,7 @@ export const addCopyrightBannerPlugin = (mode, packageName, esVersion) => { * Licensed under the MIT License. */`; - if (mode === 'production') { + if (mode === 'production') { // in 'production' mode, webpack uses terser to minimize the code. // we set options.format.preamble to make sure terser generates correct copyright banner. return new TerserPlugin({