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

Sources with no indented lines should be disregarded in bundle auto-indent #3

Closed
Rich-Harris opened this issue Jan 8, 2015 · 0 comments
Labels

Comments

@Rich-Harris
Copy link
Owner

Currently, a source that doesn't have any indented lines will be given the default indentStr of \t. When bundling several sources, tabs will therefore be over-represented - so in this situation...

// foo.js
export default 'this is foo';

// bar.js
export default 'this is bar';

// main.js
import foo from 'foo';
import bar from 'bar';

function logFoo () {
  console.log( foo );
}

function logBar () {
  console.log( bar );
}

...the bundle will incorrectly assume that tabs should be used, instead of two spaces

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

No branches or pull requests

1 participant