Skip to content

Turn Instantclick into a module if it needs to be one#156

Open
DecentM wants to merge 3 commits intodieulot:masterfrom
DecentM:master
Open

Turn Instantclick into a module if it needs to be one#156
DecentM wants to merge 3 commits intodieulot:masterfrom
DecentM:master

Conversation

@DecentM
Copy link

@DecentM DecentM commented May 10, 2017

A lot of web developers use RequireJs, Browserify or the like, so this PR enables Instantclick to be require-d or import-ed from Javascript and Typescript entry points.

Regular functionality is the same. If the script runs plainly in the browser, it will attach the InstantClick object to window as usual.

I also added a package.json to let people do npm install https://github.com/dieulot/instantclick and be on their way.

I wrote the version number as 4.0.0, so that probably needs to be changed before merging into master.

@rstacruz
Copy link

Really would love this. I've been using @egoist's fork (https://github.com/egoist/instantclick) just so I can use instantclick without bower.

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

Successfully merging this pull request may close these issues.

2 participants