Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid source map generated by parse #46

Closed
znck opened this issue Jan 8, 2019 · 1 comment
Closed

Invalid source map generated by parse #46

znck opened this issue Jan 8, 2019 · 1 comment

Comments

@znck
Copy link
Member

znck commented Jan 8, 2019

return map.toJSON()

{ version: 3,
  sources:
   [ '/Users/znck/Workspace/Experiments/repro-rollup-plugin-vue/src/App.vue' ],
  names: [],
  mappings:
   [ [],
     [],
     [],
     [],
     [],
     [],
     [],
     [],
     [],
     [],
     [],
     [ Int32Array [ 0, 0, 11, 0 ] ],
     [ Int32Array [ 0, 0, 12, 0 ] ],
     [ Int32Array [ 0, 0, 13, 0 ] ] ],
  file:
   '/Users/znck/Workspace/Experiments/repro-rollup-plugin-vue/src/App.vue',
  sourceRoot: '/Users/znck/Workspace/Experiments/repro-rollup-plugin-vue',
  sourcesContent:
   [ '<script>\nexport default {\n  \n}\n</script>\n\n<template>\n  <div class="foo">foo</div>\n</template>\n\n<style>\n.foo { \n  color: red;\n}\n</style>' ] }

mappings should be string.

Related: vuejs/rollup-plugin-vue#251

@znck
Copy link
Member Author

znck commented Jan 14, 2019

Fixed by adding source-map@0.7.1 as a dependency to rollup-plugin-vue.

@znck znck closed this as completed Jan 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant