gregjacobs / Autolinker.js

Utility to Automatically Link URLs, Email Addresses, Phone Numbers, Twitter handles, and Hashtags in a given block of text/HTML
MIT License
1.48k stars 238 forks source link

Trouble with Autolinker while using webpack #124

Closed ladas-larry closed 8 years ago

ladas-larry commented 9 years ago

I'm bundling my javascript modules using webpack-dev-middleware and webpack-hot-middleware, exactly like here https://github.com/gaearon/react-transform-boilerplate But I have a trouble with Autolinker (https://github.com/gregjacobs/Autolinker.js) package. See below. screen shot 2015-10-05 at 18 02 33

gregjacobs commented 8 years ago

Hmm, not sure why there is undefined on line 17 instead of the keyword this. Does webpack do some transformations to source files before the page serves them?

LeZuse commented 8 years ago

Duplicate of https://github.com/gregjacobs/Autolinker.js/issues/86