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

Allow setting compiler options in loader query #1

Closed
jgoz opened this issue Jan 21, 2015 · 3 comments
Closed

Allow setting compiler options in loader query #1

jgoz opened this issue Jan 21, 2015 · 3 comments

Comments

@jgoz
Copy link

jgoz commented Jan 21, 2015

To allow users to set compiler options, you can use loader-utils to parse the loader's query into an object. They could be specified like this:

{ test: /\.ts$/, loader: 'ts-loader?target=ES3,module=AMD,-sourceMap' }
@jbrantly
Copy link
Member

Thanks, I'll definitely add this.

@jbrantly
Copy link
Member

I've added this in v0.2.0 which has been published. One thing to note is I turned sourceMaps off by default (this mimics the behavior of css-loader).

@jgoz
Copy link
Author

jgoz commented Jan 25, 2015

Nice!

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

2 participants