Skip to content
New issue

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

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

Already on GitHub? # to your account

Turning off sourcemaps fails #64

Closed
torarnek opened this issue Nov 19, 2014 · 2 comments
Closed

Turning off sourcemaps fails #64

torarnek opened this issue Nov 19, 2014 · 2 comments

Comments

@torarnek
Copy link

Per default I get the following for every required module
//# sourceMappingURL=< compileOutput>

When I try to turn off source maps
es6ify.traceurOverrides = { sourceMaps: false };

I get:
TypeError: Cannot use 'in' operator to search for 'version' in null]
[TypeError: Cannot use 'in' operator to search for 'version' in null]
[TypeError: Cannot use 'in' operator to search for 'version' in null]
[TypeError: Cannot use 'in' operator to search for 'version' in null]
[TypeError: Cannot use 'in' operator to search for 'version' in null]
[TypeError: Cannot use 'in' operator to search for 'version' in null]

Is there a way to turn of source maps?

I am currently running through gulp.
browserify: 4.2.3

@domenic
Copy link
Collaborator

domenic commented Nov 19, 2014

Can you give us test case code, that does not run through gulp?

@torarnek
Copy link
Author

Well, in your example, after running node build.js, in example/public/js/bundle.js on line 7:
//# sourceMappingURL=< compileOutput>

When adding the following to build.js:
es6ify.traceurOverrides = { sourceMaps: false };
and run node build.js:

Please open the index.html inside example/public.
{ [TypeError: Cannot use 'in' operator to search for 'version' in null while parsing file: /Users/torkvalo/dev/es6ify/example/src/main.js]
filename: '/Users/torkvalo/dev/es6ify/example/src/main.js',
stream:
{ _readableState:

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants