Skip to content

How exactly to put it into my webpack? #2

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

Closed
Kuchiriel opened this issue May 24, 2017 · 5 comments
Closed

How exactly to put it into my webpack? #2

Kuchiriel opened this issue May 24, 2017 · 5 comments

Comments

@Kuchiriel
Copy link

No description provided.

@robinbandzar
Copy link

robinbandzar commented May 30, 2017

{
  test: /node_modules\/JSONStream\/index\.js$/,
  loaders: ['shebang', 'babel']
}

add that into your module loaders, in my case JSONStream was the culprit

@AhmedAKhan
Copy link

AhmedAKhan commented May 30, 2017

Thanks for your help, saved me alot of hassle :) , but can you please add this to the readme

@aliomar
Copy link

aliomar commented May 30, 2017

Ty for the help @robinbandzar

@Kuchiriel
Copy link
Author

^^

@fxlemire
Copy link

As a quick note for webpack 3 users on Windows, the above solution won't work because of the path separators (/ vs \). The following will:

module: {
  rules: [
    {
      test: path.resolve(__dirname, 'node_modules/jsonstream/index.js'),
      use: 'shebang-loader',
    },
  ],
},

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

5 participants