-
-
Notifications
You must be signed in to change notification settings - Fork 340
chakrashim: add warning for ignored engine flags #502
Conversation
| startsWith(arg, "--nolazy") || | ||
| startsWith(arg, "--max-old-space-size=")) { | ||
| // Ignore some flags to reduce unit test noise | ||
| fprintf(stderr, "Warning: Ignored engine flag: %s\n", arg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem to bother any of the unit tests, but I'll have to check that VS Code doesn't get upset about it (I doubt it). I'd say we either have a warning for all of these flags or none of them.
|
On Windows at least the > react-scripts-ts build
Failed to load tsconfig.json: Missing baseUrl in compilerOptions
Creating an optimized production build...
Found no baseUrl in tsconfig.json, not applying tsconfig-paths-webpack-plugin
Found no baseUrl in tsconfig.json, not applying tsconfig-paths-webpack-plugin
Warning: Unsupported engine flag:Starting type checking and linting service...
--Using m1 workera with x2048MB- memory limit
old-space-size=2048
ts-loader: Using typescript@2.7.2 and D:\Samples\my-app\tsconfig.json
Compiled successfully.
File sizes after gzip:
35.45 KB build\static\js\main.ceb68587.js
300 B build\static\css\main.29266132.css
The project was built assuming it is hosted at the server root.
To override this, specify the homepage in your package.json.
For example, add this to build it for GitHub Pages:
"homepage" : "http://myname.github.io/myapp",
The build folder is ready to be deployed.
You may serve it with a static server:
npm install -g serve
serve -s buildThe good news is that |
sethbrenith
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
|
@mrkmarron @digitalinfinity I added an eslint ignore to trace_mgr.js due to a new rule about using |
The error created isn't ever thrown, it's just used to get an approximate stack. PR-URL: nodejs#502 Reviewed-By: Seth Brenith <sethb@microsoft.com>
* Added a warning for any ignored engine-specific flags. * Added `--max-old-space-size=` to the list of ignored flags. PR-URL: nodejs#502 Reviewed-By: Seth Brenith <sethb@microsoft.com>
* Added a warning for any ignored engine-specific flags. * Added `--max-old-space-size=` to the list of ignored flags. PR-URL: nodejs#502 Reviewed-By: Seth Brenith <sethb@microsoft.com>
The error created isn't ever thrown, it's just used to get an approximate stack. PR-URL: nodejs#502 Reviewed-By: Seth Brenith <sethb@microsoft.com>
--max-old-space-size=to the list of ignored flags.Fixes #486
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes