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

Source map missing file property #8

Closed
sindresorhus opened this issue Oct 8, 2014 · 2 comments
Closed

Source map missing file property #8

sindresorhus opened this issue Oct 8, 2014 · 2 comments
Assignees
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@sindresorhus
Copy link
Member

Even though I specified filename in options.

_file: undefined,

Reproduce: Run npm test in the gulp-6to5 repo. https://github.com/sindresorhus/gulp-6to5/blob/e7bd9167c7ba3d98f521fa675b026511965f7af6/index.js#L30

Full map:

{ _file: undefined,
  _sourceRoot: null,
  _sources: { _array: [ 'fixture.js' ], _set: { '$fixture.js': 0 } },
  _names: { _array: [ 'map', 'v' ], _set: { '$map': 0, '$v': 1 } },
  _mappings: 
   [ { generatedLine: 1,
       generatedColumn: 0,
       originalLine: 1,
       originalColumn: 0,
       source: 'fixture.js',
       name: null },
     { generatedLine: 1,
       generatedColumn: 3,
       originalLine: 1,
       originalColumn: 3,
       source: 'fixture.js',
       name: 'map' },
     { generatedLine: 1,
       generatedColumn: 6,
       originalLine: 1,
       originalColumn: 0,
       source: 'fixture.js',
       name: null },
     { generatedLine: 1,
       generatedColumn: 7,
       originalLine: 1,
       originalColumn: 7,
       source: 'fixture.js',
       name: null },
     { generatedLine: 1,
       generatedColumn: 17,
       originalLine: 1,
       originalColumn: 7,
       source: 'fixture.js',
       name: 'v' },
     { generatedLine: 1,
       generatedColumn: 18,
       originalLine: 1,
       originalColumn: 7,
       source: 'fixture.js',
       name: null },
     { generatedLine: 1,
       generatedColumn: 20,
       originalLine: false,
       originalColumn: false,
       source: null,
       name: null },
     { generatedLine: 2,
       generatedColumn: 9,
       originalLine: 1,
       originalColumn: 12,
       source: 'fixture.js',
       name: 'v' },
     { generatedLine: 2,
       generatedColumn: 10,
       originalLine: 1,
       originalColumn: 12,
       source: 'fixture.js',
       name: null },
     { generatedLine: 2,
       generatedColumn: 13,
       originalLine: 1,
       originalColumn: 16,
       source: 'fixture.js',
       name: null },
     { generatedLine: 2,
       generatedColumn: 14,
       originalLine: false,
       originalColumn: false,
       source: null,
       name: null },
     { generatedLine: 3,
       generatedColumn: 1,
       originalLine: 1,
       originalColumn: 0,
       source: 'fixture.js',
       name: null } ],
  _sourcesContents: { '$fixture.js': '[].map(v => v + 1)' } }
sebmck added a commit that referenced this issue Oct 8, 2014
@sebmck sebmck closed this as completed Oct 8, 2014
@sebmck sebmck added the bug label Oct 11, 2014
ramasilveyra pushed a commit to ramasilveyra/babel that referenced this issue Sep 30, 2017
Use the data from https://github.com/kangax/compat-table to build the
browser data.

Each Babel plugin is mapped to a list of features in the compatibility
table (in `data/pluginFeatures.js`), and the minimum supporting
version looked up from the compatibility test data. The script builds
the final browser data file in `data/plugins.json`.
existentialism pushed a commit that referenced this issue Oct 5, 2017
Use the data from https://github.com/kangax/compat-table to build the
browser data.

Each Babel plugin is mapped to a list of features in the compatibility
table (in `data/pluginFeatures.js`), and the minimum supporting
version looked up from the compatibility test data. The script builds
the final browser data file in `data/plugins.json`.
@hzoo hzoo mentioned this issue Oct 5, 2017
JacopKane pushed a commit to JacopKane/babel that referenced this issue Jan 11, 2018
@release-notifier
Copy link

This PR landed in v7.0.0-beta.39 🎉

@hzoo
Copy link
Member

hzoo commented Jan 30, 2018

Hmm That's interesting haha

@babel babel locked as resolved and limited conversation to collaborators Jan 30, 2018
@hzoo hzoo added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jul 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

No branches or pull requests

3 participants