File tree 5 files changed +5
-8
lines changed 5 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ dotenvFiles.forEach(dotenvFile => {
49
49
// Otherwise, we risk importing Node.js core modules into an app instead of Webpack shims.
50
50
// https://github.com/facebook/create-react-app/issues/1023#issuecomment-265344421
51
51
// We also resolve them to make sure all tools using them work consistently.
52
- const appDirectory = fs . realpathSync ( process . cwd ( ) )
52
+ const appDirectory = process . cwd ( )
53
53
process . env . NODE_PATH = ( process . env . NODE_PATH || '' )
54
54
. split ( path . delimiter )
55
55
. filter ( folder => folder && ! path . isAbsolute ( folder ) )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const url = require('url')
6
6
7
7
// Make sure any symlinks in the project folder are resolved:
8
8
// https://github.com/facebook/create-react-app/issues/637
9
- const appDirectory = fs . realpathSync ( process . cwd ( ) )
9
+ const appDirectory = process . cwd ( )
10
10
const resolveApp = relativePath => path . resolve ( appDirectory , relativePath )
11
11
12
12
const envPublicUrl = process . env . PUBLIC_URL
Original file line number Diff line number Diff line change @@ -27,9 +27,6 @@ const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false'
27
27
// makes for a smoother build process.
28
28
const shouldInlineRuntimeChunk = process . env . INLINE_RUNTIME_CHUNK !== 'false'
29
29
30
- // Check if TypeScript is setup
31
- const useTypeScript = fs . existsSync ( paths . appTsConfig )
32
-
33
30
// style files regexes
34
31
const cssRegex = / \. c s s $ /
35
32
const cssModuleRegex = / \. m o d u l e \. c s s $ /
@@ -257,7 +254,7 @@ module.exports = function (webpackEnv) {
257
254
// for React Native Web.
258
255
extensions : paths . moduleFileExtensions
259
256
. map ( ext => `.${ ext } ` )
260
- . filter ( ext => useTypeScript || ! ext . includes ( 'ts' ) ) ,
257
+ . filter ( ext => ! ext . includes ( 'ts' ) ) ,
261
258
alias : {
262
259
// Support React Native Web
263
260
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const printBuildError = require('react-dev-utils/printBuildError')
28
28
const measureFileSizesBeforeBuild =
29
29
FileSizeReporter . measureFileSizesBeforeBuild
30
30
const printFileSizesAfterBuild = FileSizeReporter . printFileSizesAfterBuild
31
- const useYarn = fs . existsSync ( paths . yarnLockFile )
31
+ const useYarn = false
32
32
33
33
// These sizes are pretty large. We'll warn for bundles exceeding them.
34
34
const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const paths = require('../config/paths')
32
32
const configFactory = require ( '../config/webpack.config' )
33
33
const createDevServerConfig = require ( '../config/webpackDevServer.config' )
34
34
35
- const useYarn = fs . existsSync ( paths . yarnLockFile )
35
+ const useYarn = true
36
36
const isInteractive = process . stdout . isTTY
37
37
38
38
// Warn and crash if required files are missing
You can’t perform that action at this time.
0 commit comments