falsandtru / pjax-api

The advanced PJAX superior to SPA.
https://falsandtru.github.io/pjax-api/
Apache License 2.0
318 stars 28 forks source link

Interop with Webpack #31

Closed falsandtru closed 6 years ago

falsandtru commented 6 years ago

Enable to bundle with Webpack.

An easy way is exposing APIs to global scope. However, this is dirty. I want to resolve this issue without exposing.

kcdipesh commented 6 years ago

Any way to make this work?

falsandtru commented 6 years ago

I'm not providing that for now.

obsidienne commented 6 years ago

Hi,

With webpack4 released, do you have any plan to make it bundable ?

Thanks

falsandtru commented 6 years ago

I don't know webpack well. If I expose APIs to module.exports as follows, can you bundle it with webpack?

module.exports = require('pjax-api');
obsidienne commented 6 years ago

It will try it this weekend

daybugging commented 6 years ago

so, any news?

falsandtru commented 6 years ago

Today, I added universal module handling script. You may bundle this library using webpack.

obsidienne commented 6 years ago

Cool, it works. amazing thanks

falsandtru commented 6 years ago

Thanks for your review.