We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No matter how I configure my vite.config.js file, I get "$ is not a function" from livewire-select2's scripts. I've tried:
import inject from '@rollup/plugin-inject'; export default defineConfig({ plugins: [ inject({ $: 'jquery', jQuery: 'jquery', }), ...
and
optimizeDeps: { include: ["jquery"], },
build: { rollupOptions: { output: { // expose jQuery as a global variable globals: { $: 'jquery', jQuery: 'jquery', 'window.jQuery': 'jquery', } } } }
With my old webpack/mix setup I was able to make this work with:
mix.webpackConfig(webpack => { return { plugins: [ new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery', 'window.jQuery': 'jquery' }), ], }; });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
No matter how I configure my vite.config.js file, I get "$ is not a function" from livewire-select2's scripts.
I've tried:
and
and
With my old webpack/mix setup I was able to make this work with:
The text was updated successfully, but these errors were encountered: