How to import zepto?
See original GitHub issuewith webpack, imports-loader
can be leverage to load this kind of legacy lib. How about parcel?
module: {
rules: [
{
test: require.resolve('zepto'),
use: 'imports-loader?this=>window'
}
]
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Zepto Docs
Zepto is a minimalist JavaScript library for modern browsers with a largely jQuery-compatible API. If you use jQuery, you already know how to...
Read more >zepto - npm
Start using zepto in your project by running `npm i zepto`. There are 124 other projects in the npm registry using zepto.
Read more >webpack: implement zeptojs into the build - Stack Overflow
// ES6 module syntax with direct reference to ZeptoJS file import 'path/to/zepto.min.js' as $; $.zeptoMethod();.
Read more >npm:zepto-modules | Skypack
Zepto in CommonJS modules. ... Open in CodePen. <script type="module"> import zeptoModules from 'https://cdn.skypack.dev/zepto-modules'; </script> ...
Read more >webpack-zepto | Yarn - Package Manager
Webpack compatible zepto. readme. Just a quick package to load zepto using webpack. import $ from 'webpack-zepto' ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@l-hammer
This is a
zepto
bug, and has already been fixed inzepto
master branch, which will be released in next version@dicklwm how to do ?