Comments (2)
I'm experiencing the same issue. The log returns:
{ default: [Function: vitePluginRequireTransform] }
It seems to pass calling default
function:
import requireTransform from 'vite-plugin-require-transform';
export default defineConfig({
plugins: [
requireTransform.default({}),
],
});
from vite-plugin-require-transform.
then just log out what requireTransform is ?
from vite-plugin-require-transform.
Related Issues (20)
- requireTransform is not a function HOT 1
- RequireTransform is not a Function HOT 2
- 开发环境下,未生成souceMap,导致浏览器里的日志打印行 列错乱,debugger 也会出现问题。 HOT 4
- js 项目不能使用吗? HOT 6
- vite-plugin-require-transform cannot transform path like this './' HOT 1
- tree-shaking does not work HOT 1
- require.context do not work HOT 1
- vue2 build error HOT 1
- vite-vue3 build error HOT 3
- requireTransform is not a function HOT 5
- SyntaxError: Cannot use import statement outside a module HOT 2
- vue2.6.12 and use [email protected], vite build failed HOT 1
- [plugin:_vite_plugin_require_transform_] Unexpected token (1:39) - make sure this is an expression.
- "default" is not exported by "node_modules/react/cjs/react.development.js", imported by "node_modules/react/index.js".
- "default" is not exported by "node_modules/react/cjs/react.development.js", imported by "node_modules/react/index.js".
- why dist/index.d.ts is empty HOT 4
- 为什么vite-plugin-require-transform这么写会报错,怎么解决 HOT 1
- The requested module '/config/env.ts' does not provide an export named 'default HOT 2
- 1.0.11 index.d.ts not packaged HOT 3
- ERROR [_vite_plugin_require_transform_] traverse is not a function HOT 26
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 vite-plugin-require-transform.