-
-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
internal: remove usage of hand crafted webpack typings #927
Changes from 3 commits
db629db
2cbbdf3
ca07454
7a609f8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,9 @@ | |
resolved "https://registry.yarnpkg.com/@types/jasmine/-/jasmine-2.6.0.tgz#997b41a27752b4850af2683bc4a8d8222c25bd02" | ||
|
||
"@types/node@*": | ||
version "8.0.45" | ||
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.45.tgz#89fad82439d5624e1b5c6b42f0f5d85136dcdecc" | ||
version "11.13.8" | ||
resolved "https://registry.yarnpkg.com/@types/node/-/node-11.13.8.tgz#e5d71173c95533be9842b2c798978f095f912aab" | ||
integrity sha512-szA3x/3miL90ZJxUCzx9haNbK5/zmPieGraZEe4WI+3srN0eGLiT22NXeMHmyhNEopn+IrxqMc7wdVwvPl8meg== | ||
|
||
"@types/[email protected]": | ||
version "0.31.6" | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -7,10 +7,6 @@ export const LineFeed = '\n'; | |||||
export const CarriageReturnLineFeedCode = 0; | ||||||
export const LineFeedCode = 1; | ||||||
|
||||||
export const ScriptTargetES2015 = 2; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So interestingly the moving of using locally defined constants to directly depending on TypeScript would mark the first direct runtime (rather than compilation time) dependency on the I believe, back in the mists of time, this was an intentional choice by ts-loader's @jbrantly. I think the reasons were to do with ts-loader working with multiple versions of TypeScript - not bolted to a specific one that you build with. It may been related to the ability to supply your own version of TypeScript. Remember ntypescript? https://github.com/TypeStrong/ts-loader/blob/master/README.md#compiler-string-defaulttypescript See also: ts-loader/src/compilerSetup.ts Line 15 in 48626a9
I don't know if this matters anymore. The values of those enums are pretty much set in stone now. I'd appreciate any thoughts on this - it's probably fine. But I've a feeling that other views may be available too. Also @arcanis - would this create issues for yarn PnP support? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Not if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cool - it's already a Line 94 in 48626a9
|
||||||
|
||||||
export const ModuleKindCommonJs = 1; | ||||||
|
||||||
export const extensionRegex = /\.[^.]+$/; | ||||||
export const tsxRegex = /\.tsx$/i; | ||||||
export const tsTsxRegex = /\.ts(x?)$/i; | ||||||
|
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.
Nice!