-
-
Notifications
You must be signed in to change notification settings - Fork 49
Conversation
Add `awesome-typescript-loader` to the webpack configuration for vue projects.
The `ts-loader` for webpack is used for transpiling TS in Vue projects.
The `ts-loader` works for Single File Components, whereas the `awesome-typescript-loader` does not.
efbb044
to
6b748af
Compare
@@ -74,30 +74,31 @@ | |||
"generate-android-snapshot": "./bin/generate-android-snapshot" | |||
}, | |||
"dependencies": { | |||
"@angular-devkit/core": "~7.1.0", | |||
"awesome-typescript-loader": "~5.2.1", |
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.
I guess we can remove this now :)
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.
It is still used in the webpack config for {N} + TypeScript apps. I will try to migrate that config to ts-loader
as well and remove the awesome-typescript-loader
.
"clean-webpack-plugin": "~1.0.0", | ||
"copy-webpack-plugin": "~4.6.0", | ||
"css-loader": "~1.0.0", | ||
"extract-text-webpack-plugin": "~3.0.2", |
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 one wasn't working with Webpack 4, does it now?
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.
Good catch! It doesn't work and it is not used in the configs anymore. I will remove it.
About
This PR adds support for TypeScript in the Vue template. The
ts-loader
is used for transpiling files with.ts
extension and TS code inside SFCs.Check out the demo application.
Plugin development
The resolving of symlinked packages is turned on. This will allow the development of TS plugins that are linked in some demo application. For example, nativescript-ui-listview.