|
1 |
| -// compiler-sfc src: https://github.com/vuejs/vue-next/blob/master/packages/compiler-sfc/src/index.ts#L1 |
2 | 1 | import {
|
3 | 2 | compileStyleAsync as sfc_compileStyleAsync,
|
4 | 3 | compileTemplate as sfc_compileTemplate,
|
@@ -84,7 +83,6 @@ export async function createSFCModule(source : string, filename : string, option
|
84 | 83 |
|
85 | 84 | const { delimiters, moduleCache, compiledCache, pathHandlers: { resolve }, getFile, addStyle, log, additionalBabelPlugins = [], customBlockHandler } = options;
|
86 | 85 |
|
87 |
| - // vue-loader next: https://github.com/vuejs/vue-loader/blob/next/src/index.ts#L91 |
88 | 86 | const descriptor = sfc_parse({
|
89 | 87 | source,
|
90 | 88 | filename,
|
@@ -196,8 +194,7 @@ export async function createSFCModule(source : string, filename : string, option
|
196 | 194 |
|
197 | 195 |
|
198 | 196 | if ( descriptor.template !== null ) {
|
199 |
| - // compiler-sfc src: https://github.com/vuejs/vue-next/blob/15baaf14f025f6b1d46174c9713a2ec517741d0d/packages/compiler-sfc/src/compileTemplate.ts#L39 |
200 |
| - // compileTemplate eg: https://github.com/vuejs/vue-loader/blob/next/src/templateLoader.ts#L33 |
| 197 | + |
201 | 198 | const [ templateDepsList, templateTransformedSource ] = await withCache(compiledCache, [ componentHash, compileTemplateOptions.source ], async ({ preventCache }) => {
|
202 | 199 |
|
203 | 200 | const template = sfc_compileTemplate(compileTemplateOptions);
|
@@ -245,7 +242,6 @@ export async function createSFCModule(source : string, filename : string, option
|
245 | 242 | const src = descStyle.src ? (await getFile(resolve(filename, descStyle.src))).content : descStyle.content;
|
246 | 243 |
|
247 | 244 | const style = await withCache(compiledCache, [ componentHash, src, descStyle.lang ], async ({ preventCache }) => {
|
248 |
| - // src: https://github.com/vuejs/vue-next/blob/15baaf14f025f6b1d46174c9713a2ec517741d0d/packages/compiler-sfc/src/compileStyle.ts#L70 |
249 | 245 |
|
250 | 246 | const compileStyleOptions: StyleCompileOptions = {
|
251 | 247 | source: src,
|
|
0 commit comments