Skip to content

Commit 938e93b

Browse files
philjbwdoconnell
andauthored
fix: specify env.ts more specifically for newer node versions (#7001)
* cherry-pick of #7000 Co-authored-by: Bill OConnell <wdoconnell@gmail.com>
1 parent cae6955 commit 938e93b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

webpack.common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const {
1111
STATIC_DIRECTORY,
1212
BASE_PATH,
1313
API_BASE_PATH,
14-
} = require('./src/utils/env')
14+
} = require('./src/utils/env.ts')
1515

1616
const MONACO_DIR = path.resolve(__dirname, './node_modules/monaco-editor')
1717

webpack.dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const mergeDev = require('webpack-merge').merge
33
const commonDev = require('./webpack.common.ts')
44
const PORT = parseInt(process.env.PORT, 10) || 8080
55
const PUBLIC = process.env.PUBLIC || undefined
6-
const BASE_PATH_DEV = require('./src/utils/env').BASE_PATH
6+
const BASE_PATH_DEV = require('./src/utils/env.ts').BASE_PATH
77
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin')
88

99
module.exports = mergeDev(commonDev, {

webpack.fast.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// utils
22
const common = require('./webpack.common.ts')
33
const merge = require('webpack-merge').merge
4-
const STATIC_DIR = require('./src/utils/env').STATIC_DIRECTORY
4+
const STATIC_DIR = require('./src/utils/env.ts').STATIC_DIRECTORY
55

66
module.exports = merge(common, {
77
mode: 'none',

webpack.lighthouse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const commonPath = require('path')
77
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
88
const TerserJSPlugin = require('terser-webpack-plugin')
99

10-
const DIRECTORY_STATIC = require('./src/utils/env').STATIC_DIRECTORY
10+
const DIRECTORY_STATIC = require('./src/utils/env.ts').STATIC_DIRECTORY
1111

1212
module.exports = mergeWebpack(commonWebpack, {
1313
mode: 'production',

webpack.prod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
88
const TerserJSPlugin = require('terser-webpack-plugin')
99
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin')
1010

11-
const DIRECTORY_STATIC = require('./src/utils/env').STATIC_DIRECTORY
11+
const DIRECTORY_STATIC = require('./src/utils/env.ts').STATIC_DIRECTORY
1212

1313
module.exports = mergeWebpack(commonWebpack, {
1414
mode: 'production',

0 commit comments

Comments
 (0)