Skip to content

Import Snap using Webpack imports-loader 2.0.0 not working #649

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sampathkumarm opened this issue May 12, 2021 · 1 comment
Closed

Import Snap using Webpack imports-loader 2.0.0 not working #649

sampathkumarm opened this issue May 12, 2021 · 1 comment

Comments

@sampathkumarm
Copy link

sampathkumarm commented May 12, 2021

After updating imports-loader to the latest version 2.0.0 Snap does not work.

Current code = var Snap = require("imports-loader?wrapper=>window,fix=>module.exports=0!snapsvg/dist/snap.svg.js");
New = ??

I tried as mentioned here https://webpack.js.org/loaders/imports-loader/ but no luck.

@sampathkumarm
Copy link
Author

Sorry, I should have searched through properly as the fix seems to work as mentioned here #639

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant