Skip to content

Commit bd2581f

Browse files
committed
todos
1 parent 5503e2a commit bd2581f

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Diff for: lib/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ module.exports = function (source) {
9393
}
9494

9595
// styles
96+
// TODO construct an injection function instead
9697
let styleImports = ``
9798
if (descriptor.styles.length) {
9899
styleImports = descriptor.styles.map((style, i) => {
@@ -126,6 +127,7 @@ var component = normalizer(
126127
// TODO custom blocks
127128
}
128129

130+
// Expose filename. This is used by the devtools and vue runtime warnings.
129131
if (!isProduction) {
130132
code += `\ncomponent.options.__file = ${JSON.stringify(shortFilePath)}`
131133
}

Diff for: test/style.spec.js

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ test('postcss', done => {
106106
})
107107
})
108108

109+
// TODO
109110
// test('css-modules', done => {
110111
// function testWithIdent (localIdentName, regexToMatch, cb) {
111112
// mockBundleAndRun({

Diff for: test/template.spec.js

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ test('transform srcset', done => {
109109
})
110110
})
111111

112+
// TODO
112113
// test('functional component with styles', done => {
113114
// mockBundleAndRun({
114115
// entry: 'functional-style.vue'
@@ -170,6 +171,7 @@ test('functional template', done => {
170171
})
171172
})
172173

174+
// TODO
173175
// test('customizing template loaders', done => {
174176
// mockBundleAndRun({
175177
// entry: 'markdown.vue'

0 commit comments

Comments
 (0)