zepto-webpack

1.2.1 • Public • Published

zepto

Since webpack ProvicePlugin can only be used when $ is directly derived from a module, current modules can't be used conviently in webpack since their exports.$ is what we got.

Current version of Zepto: 1.2.0

Version of this repo: 1.2.0

Official releases: github.com/madrobby/zepto/releases

Install

npm install zepto-webpack

Usage

plugins: [
    new webpack.ProvidePlugin({
        $: 'zepto-webpack'
    })
]

Changes from Zepto

at line 887 I add:

module.exports = window.Zepto;

solve ajax issue in issue921

Readme

Keywords

Package Sidebar

Install

npm i zepto-webpack

Weekly Downloads

311

Version

1.2.1

License

MIT

Last publish

Collaborators

  • victorisildur_xl