EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: fengdie on September 05, 2018, 04:08:41 AM



Title: use webpack4 load easyui plugins error
Post by: fengdie on September 05, 2018, 04:08:41 AM
Before using webpack1 to load easyui plugin to use normally.
now Upgrade to webpack4,strict mode. can not use `arguments.callee`

Code:
jquery.validatebox.js:96 Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
    at jquery.validatebox.js:96
    at HTMLTextAreaElement.focusEventHandler (jquery.validatebox.js:79)
    at HTMLTextAreaElement.dispatch (event.js:340)
    at HTMLTextAreaElement.elemData.handle (event.js:148)


Title: Re: use webpack4 load easyui plugins error
Post by: fengdie on September 05, 2018, 07:14:39 PM
I solved it myself.
update `.babelrc`file
Code:
{
    "presets": ["env"],
    "ignore": [
    "./src/modules/easyui"
    ]
}