vuejs / vue-component-compiler

Compile a single file Vue component into a CommonJS module.
MIT License
342 stars 52 forks source link

fix: normalize source map file path on windows #83

Closed 3cp closed 5 years ago

3cp commented 5 years ago

The fixes for TypeScript errors are in separated commit.

Updated test snapshot file.

  1. Sources paths was cleaned up by upgrading component-compiler-utils.
  2. Styles mapping changes are due to newer version of postcss (from component-compiler-utils).
  3. postcss rawResult is removed.
    • The rawResult contains ast tree which postcss always prepends current working directory to referencing file name.
    • This is a main pain point of maintaining this snapshot test.
    • The correctness of rawResult is responsibility of postcss, not vue compiler. So it's irrelevant to test it here.

This is a companion PR for vuejs/component-compiler-utils#51