Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fs-eire committed May 2, 2023
1 parent f75698e commit 1d23564
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions js/common/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion js/webpack.shared.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 1d23564

Please sign in to comment.