Commit 2f644452 authored by Stan Hu's avatar Stan Hu

Merge branch 'add-typescript' into 'master'

Adds typescript support in webpack. With Mike G.

See merge request gitlab-org/gitlab-ce!15264
parents ac4a976c 98b6175e
---
title: Adds typescript support
merge_request:
author:
type: added
......@@ -107,6 +107,10 @@ var config = {
test: /\.vue$/,
loader: 'vue-loader',
},
{
test: /\.ts$/,
loader: 'ts-loader',
},
{
test: /\.svg$/,
loader: 'raw-loader',
......@@ -252,7 +256,7 @@ var config = {
],
resolve: {
extensions: ['.js'],
extensions: ['.js', '.ts'],
alias: {
'~': path.join(ROOT_PATH, 'app/assets/javascripts'),
'emojis': path.join(ROOT_PATH, 'fixtures/emojis'),
......
{
"compilerOptions": {
"target": "es5",
"strict": true,
"module": "es2015",
"moduleResolution": "node"
}
}
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment