Skip to content

Commit

Permalink
Fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjbradshaw committed Mar 1, 2023
1 parent da2a6bb commit b3cf087
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
module.exports = require('./js')
module.exports = {
iframeResize: require('./js/iframeResizer'),

This comment has been minimized.

Copy link
@perjo927

perjo927 Mar 3, 2023

Hi, I believe this should be considered a breaking change.
The following import that was working in the former version:

import { iframeResizer } from 'iframe-resizer';

after bumping the version of this package, now throws:

TypeError: iframeResizer is not a function

This comment has been minimized.

Copy link
@perjo927

perjo927 Mar 3, 2023

Importing using

import { iframeResize } from 'iframe-resizer';

gives the following lint error:

'"iframe-resizer"' has no exported member named 'iframeResize'

This comment has been minimized.

Copy link
@davidjbradshaw

davidjbradshaw via email Mar 3, 2023

Author Owner

This comment has been minimized.

Copy link
@perjo927

perjo927 Mar 4, 2023

Thanks for the swift reply @davidjbradshaw !

I will take a look and see if I can come up with something 🙂

This comment has been minimized.

Copy link
@oschlegel

oschlegel Mar 6, 2023

I can confirm this issue. I use import { IFrameComponent, iframeResizer } from 'iframe-resizer'; and the update to version 4.3.5 is breaking by app

contentWindow: require('./js/iframeResizer.contentWindow')
}

0 comments on commit b3cf087

Please sign in to comment.