1.2.1 • Published 7 years ago

zepto-webpack v1.2.1

Weekly downloads
449
License
MIT
Repository
github
Last release
7 years ago

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