Provide access to supportedExts in Vite plugins
See original GitHub issueHi, I’m writing a plugin for vite to load imba files. I need to add .imba
to the supportedExts
array exported locally from resolver.ts
, but not yet made available via index.ts
.
Right now I am importing resolver
through an ugly hack but that fails when using pnpm
instead of npm
or yarn
, due to the use of links and junctions.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Using Plugins - Vite
Finding Plugins # ... Vite aims to provide out-of-the-box support for common web development patterns. Before searching for a Vite or compatible Rollup...
Read more >Plugin API - Vite
Plugin API #. Vite plugins extends Rollup's well-designed plugin interface with a few extra Vite-specific options. As a result, you can write a...
Read more >Plugins - Vite
Vite aims to provide out-of-the-box support for common web development patterns. Before searching for a Vite or Compatible Rollup plugin, check out the ......
Read more >Features | Vite
Vue #. Vite provides first-class Vue support: Vue 3 SFC support via @vitejs/plugin-vue; Vue 3 JSX support via @ ...
Read more >Shared Options | Vite
Will be passed to @rollup/plugin-alias as its entries option. ... Note if an inline config is provided, Vite will not search for other...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
React-Native’s ecosystem use
.web.js
for web and.js
for native.For example https://github.com/react-native-svg/react-native-svg/blob/develop/src/ReactNativeSVG.web.ts
Is there any way to use them without
.web.js
?Thanks for the tip! I’m trying something similar, and that works with npm and yarn, but not with pnpm. Will test the svelte plugin with pnpm under Windows 10 (pnpm uses junctions). Hopefully it works!