Questions tagged [expose-loader]
4 questions
5
votes
1 answer
How to install expose-loader 3.0.0 with rails 6?
I still have a few dependencies on jQuery. With Rails 6 and Webpack it's required to expose jquery otherwise errors occur. I have been using expose-loader 1.0.3 for some time without issue but, if I upgrade to expose-loader 2.0.0 or 3.0.0 I…

hellion
- 4,602
- 6
- 38
- 77
3
votes
1 answer
webpack 5 adds defer="defer" to script tags?
my html document's head tag has in it:
and in the document's body, I have a script tag which is trying to use jQuery, but I get…

patrick
- 9,290
- 13
- 61
- 112
1
vote
1 answer
Webpack migration from v4 to v5, expose-loader throwing error
Trying to update webpack from version 4.44.2 to the latest version 5.58.2 and I suppose there are breaking changes. The expose-loader is setup and it is throwing an error.
Here is a snippet of the package.json file
"expose-loader": "^3.0.0",
…

user2140740
- 101
- 2
- 8
0
votes
1 answer
Expose Functions Using Webpack & Then Call Them From an Inline Script
I'm working on getting a bunch of legacy inline scripts cleaned up.
My question is: How do I call a function from an inline script that is compiled in WebPack.
After trying a bunch of different things, I understand that I need to use…

Ryan Dorn
- 679
- 2
- 8
- 20