diff --git a/rollup.config.js b/rollup.config.js index 63fa8da..26198f5 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -22,7 +22,7 @@ const getConfig = withPolyfill => ({ : [getOutput(packageJson.main, 'cjs'), getOutput(packageJson.module, 'esm')], external: externalDeps, plugins: [resolve(), commonjs(), typescript({ useTsconfigDeclarationDir: true })].concat( - withPolyfill ? [inject({ ResizeObserver: 'resize-observer-polyfill' })] : [] + withPolyfill ? [inject({ 'window.ResizeObserver': 'resize-observer-polyfill' })] : [] ) });