Commit bd2581fa authored by Evan You's avatar Evan You

todos

parent 5503e2a2
...@@ -93,6 +93,7 @@ module.exports = function (source) { ...@@ -93,6 +93,7 @@ module.exports = function (source) {
} }
// styles // styles
// TODO construct an injection function instead
let styleImports = `` let styleImports = ``
if (descriptor.styles.length) { if (descriptor.styles.length) {
styleImports = descriptor.styles.map((style, i) => { styleImports = descriptor.styles.map((style, i) => {
...@@ -126,6 +127,7 @@ var component = normalizer( ...@@ -126,6 +127,7 @@ var component = normalizer(
// TODO custom blocks // TODO custom blocks
} }
// Expose filename. This is used by the devtools and vue runtime warnings.
if (!isProduction) { if (!isProduction) {
code += `\ncomponent.options.__file = ${JSON.stringify(shortFilePath)}` code += `\ncomponent.options.__file = ${JSON.stringify(shortFilePath)}`
} }
......
...@@ -106,6 +106,7 @@ test('postcss', done => { ...@@ -106,6 +106,7 @@ test('postcss', done => {
}) })
}) })
// TODO
// test('css-modules', done => { // test('css-modules', done => {
// function testWithIdent (localIdentName, regexToMatch, cb) { // function testWithIdent (localIdentName, regexToMatch, cb) {
// mockBundleAndRun({ // mockBundleAndRun({
......
...@@ -109,6 +109,7 @@ test('transform srcset', done => { ...@@ -109,6 +109,7 @@ test('transform srcset', done => {
}) })
}) })
// TODO
// test('functional component with styles', done => { // test('functional component with styles', done => {
// mockBundleAndRun({ // mockBundleAndRun({
// entry: 'functional-style.vue' // entry: 'functional-style.vue'
...@@ -170,6 +171,7 @@ test('functional template', done => { ...@@ -170,6 +171,7 @@ test('functional template', done => {
}) })
}) })
// TODO
// test('customizing template loaders', done => { // test('customizing template loaders', done => {
// mockBundleAndRun({ // mockBundleAndRun({
// entry: 'markdown.vue' // entry: 'markdown.vue'
......
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