Commit 22ced0d4 authored by Mike Greiling's avatar Mike Greiling

Switch to Vue without runtime compiler

This allows us to ship a much smaller build of Vue in production and
forces folks to use Vue SFC with templates rather than defining
templates in HAML which is prone to XSS due to an additional layer of
indirection. We are already linting against new usage of this pattern
with our eslint rule: `@gitlab/no-runtime-template-compiler`

We still support compilation from Strings in Jest tests though.
parent 7c77b8ee
......@@ -152,7 +152,6 @@ const alias = {
icons: path.join(ROOT_PATH, 'app/views/shared/icons'),
images: path.join(ROOT_PATH, 'app/assets/images'),
vendor: path.join(ROOT_PATH, 'vendor/assets/javascripts'),
vue$: 'vue/dist/vue.esm.js',
jquery$: 'jquery/dist/jquery.slim.js',
jest: path.join(ROOT_PATH, 'spec/frontend'),
shared_queries: path.join(ROOT_PATH, 'app/graphql/queries'),
......
......@@ -33,8 +33,8 @@ module.exports = {
'echarts',
'lodash',
'vuex',
'vue',
'pikaday',
'vue/dist/vue.esm.js',
'@gitlab/at.js',
'jed',
'mermaid',
......
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