question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide access to supportedExts in Vite plugins

See original GitHub issue

Hi, 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
xcodebuildcommented, Jun 9, 2021

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?

1reaction
eulorescommented, Sep 8, 2020

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found