babel plugin
babel polyfill
entry: { pano: ['babel-polyfill', './js/pano.js'], video: ['babel-polyfill', './js/video.js'] },
babel fetch polyfill
yarn add isomorphic-fetch es6-promise
- import where module use fetch
import "isomorphic-fetch"
babel globalThis polyfill
babel do not support globalThis yet
use window
Uncaught ReferenceError: regeneratorRuntime is not defined
async await for