Comments (9)
I'd also like to know the answer to this. Thanks!
from expose-loader.
I'm interested too. I can't find a way to expose jquery with jquery-ui to properly use animations.
from expose-loader.
I will come back soon, but I need to ask @slack about this, an example config (webpack.config.js
), demo repo etc from one of you guys would be helpful and appreciated 😛
from expose-loader.
Any update on this?
Edit:
I managed to combine them by adding:
import $ from 'expose-loader?$!jquery'
import 'jqueryui/jquery-ui.css'
import 'jqueryui'
from expose-loader.
@steffanhalv the first line of your answer doesn't work in TypeScript:
TS2307: Cannot find module 'expose-loader?$!jquery'.
I can expose bootstrap extensions on the jQuery namespace by just doing
import "expose-loader?$!jquery" import "bootstrap"
but I've yet to figure out how to get any jQuery UI package to expose $.ui
.
from expose-loader.
I havent tried with typescript, Im using latest babel with env preset.
I could use jqueryui with jquery by:
import 'jquery-ui'
import $ from 'expose-loader?$!jquery'
from expose-loader.
@steffanhalv can you create minimum reproducible test repo?
from expose-loader.
from expose-loader.
Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks! ETA is the next major release is end of week with a lot of fixes
from expose-loader.
Related Issues (20)
- Options missing in third-party loader HOT 34
- Cannot expose ts module since 1.0.0 HOT 4
- Issue with alias while exposing private module HOT 1
- Webpack omits exposed modules when sideEffects are enabled HOT 15
- ! vs | HOT 14
- Cant get new versions of expose-loader to work HOT 8
- Unable to expose jQuery HOT 4
- expose-loader works in Chrome but not FireFox? HOT 9
- Docs Mismatch and Absolutely no "local" Examples HOT 1
- opt out of development thrown error HOT 5
- Exposing a class converts it to an esmodule object HOT 2
- webpack and webpack --watch will get different output HOT 1
- jQuery is not being exposed HOT 5
- Doesn't work as expected when exposing @apollo/client HOT 26
- Customizing the runtime getGlobalThis HOT 2
- Support namespace import
- Exposing ES6 modules without the default property HOT 2
- Webpack sometimes skips modules loaded through expose-loader when tree shaking is enabled HOT 2
- File hashes change between OSs when using expose-loader to replace jQuery and $ HOT 2
- expose-loader not working correctly with webpack 4 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expose-loader.