You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@photo-sphere-viewer packages use modern ES6 syntax, which is supported by all major browsers. This means you will need a transpiler like Babel if you want to support oldest browsers.
but the library is building to es2021. Is it possible to build a library for es2015?
Online demo URL
No response
Photo Sphere Viewer version
5.1.5
Plugins loaded
No response
OS & browser
Windows 11
Additional context
I'm using a library in angular which uses webpack 4.x.x under the hood and trying to migrate from v4 to v5 but having problem with building as it doesn't recognize ?. and ?? which are part of es2020.
ERROR in ./node_modules/@photo-sphere-viewer/core/index.module.js 270:10
Module parse failed: Unexpected token (270:10)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| }
| function getClosest(el, selector) {
> if (!el?.matches) {
| return null;
| }
Describe the bug
Referring to the migration guide from v4 to v5
but the library is building to es2021. Is it possible to build a library for es2015?
Online demo URL
No response
Photo Sphere Viewer version
5.1.5
Plugins loaded
No response
OS & browser
Windows 11
Additional context
I'm using a library in angular which uses webpack 4.x.x under the hood and trying to migrate from v4 to v5 but having problem with building as it doesn't recognize
?.
and??
which are part of es2020.This is probably a webpack bug that was fixed in v5.x.x. webpack/webpack#10227
The text was updated successfully, but these errors were encountered: