Closed KatSick closed 7 years ago
The runtime transform doesn't deal with instance methods, this is from its docs:
NOTE: Instance methods such as
"foobar".includes("foo")
will not work since that would require modification of existing builtins (Usebabel-polyfill
for that).
You would need handle polyfilling String.prototype.includes()
yourself.
Many thanks
This issue is a: Question / support request Which modules are installed in your project?
Which versions of Node.js, npm and nwb are you using (if using it globally)?
My NWB config is:
I have some code with
'abc'.includes('b')
and in IE11 i receive:As far as i understand
runtime: true
should polyfill all methods on demand. Is it correct ?