facebookarchive/prepack

Support for jquery

akbarexclusive opened this issue · 1 comments

ReferenceError: $ is not defined
at script.js:84:1 (https://github.com/facebook/prepack/wiki/PP0023)

You should inject $ as global object into js files. Prepack doesn't now anything about such variables...
Webpack contains webpack.ProvidePlugin for such cases or use const $ = require('jquery') . It's not prepack issue at all because prepack is NodeJs package and works under NodeJs. You should pay attention on this. It's not "browser-package" but NodeJS...