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

babel-preset-ts-node6-bluebird issue #2

Open
tylerlong opened this issue Dec 13, 2017 · 4 comments
Open

babel-preset-ts-node6-bluebird issue #2

tylerlong opened this issue Dec 13, 2017 · 4 comments

Comments

@tylerlong
Copy link

It seems that project depending on this project (either directly or indirectly) have to install babel-preset-ts-node6-bluebird, otherwise webpack will complain.

Can we remove the following from package.json:

"babel": {
    "presets": [
      "babel-preset-ts-node6-bluebird"
    ]
  },

?

@develar
Copy link
Owner

develar commented Dec 13, 2017

No, or do you use src directly instead of published on npm (generated out)?

@tylerlong
Copy link
Author

I use the npm library instead of source.

It seems that webpack or babel interprets that piece of code and it required every project which uses this library to install babel-preset-ts-node6-bluebird. Which doesn't make much sense because not every project uses TS and bluebird.

@tylerlong
Copy link
Author

For babel presets, I've seen people put them in to .babelrc or webpack.config.js. This is the only project(I've seen) that put them into package.json

@tylerlong
Copy link
Author

And by the way, you are writing TS, why do you need babel? TS itself is a transcompiler.

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