Closed oimos closed 4 years ago
Is it possible to use import in a JS file to use this polyfill?
import
import 'intersection-observer'
Or do I need to add below in my webpack.config.js?
require('intersection-observer')
using import 'intersection-observer' in a JS file powered by webpack is fine :)
Thank you! It works. I wanted to confirm so now I feel I'm on the right track :)
Is it possible to use
import
in a JS file to use this polyfill?Or do I need to add below in my webpack.config.js?