Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Apply the method to window explicitly - #347

Open
bbeirnaert wants to merge 1 commit into
scottjehl:masterfrom
bbeirnaert:patch-2
Open

bbeirnaert wants to merge 1 commit into
scottjehl:masterfrom
bbeirnaert:patch-2

Conversation

@bbeirnaert

Copy link
Copy Markdown

To include respond.js using webpack, it is required to have the scope specified explicitly to window (instead of this), since it is enclosed in an import function where this is not window.

To include respond.js using webpack, it is required to have the scope specified explicitly to window (instead of this), since it is enclosed in an import function where this is not window.
@iam4x

iam4x commented Jan 15, 2016

Copy link
Copy Markdown

@bbeirnaert You can also use imports-loader :

const respondjs = require('imports-loader?this=>window!Respond.js/dest/respond.min');

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants