Comments (2)
在 0.15.0
版本中支持了 esbuild,欢迎大佬安装体验,有问题欢迎随时反馈,配置如下:
需要注意的是,esbuild 中使用时,dev 函数的返回值需自己根据环境判断,本地开发的环境返回 true,线上打包返回 false。如果开发环境和生产环境使用两套配置的话,直接设置 dev: true
就可以
const esbuild = require('esbuild');
const { codeInspectorPlugin } = require('code-inspector-plugin');
const isDev = process.env.NODE_ENV === 'development'; // 根据自己的配置去设置 isDev 的值
esbuild.build({
// other configs...
plugins: [codeInspectorPlugin({ bundler: 'esbuild', dev: () => isDev })],
});
from code-inspector.
from code-inspector.
Related Issues (20)
- 新版本的vscode 无法使用 HOT 5
- vscode 偶尔跳转会打开, 大部分时候都是要手动切换窗口 HOT 2
- cros错误 HOT 2
- 遍历JSXElement节点的时候,没有区分是react组件还是普通html标签,导致给react组件添加一个data-insp-path属性 HOT 3
- 支持angular HOT 4
- feat: 找不到文件 append-code-xxxx.js
- 为什么包体积这么大?可以优化吗 HOT 2
- 交互代码会重复注入到多个文件
- 同一端口的代码文件有缓存问题
- 可以增加一个属性控制是否显示控制台输出吗? HOT 1
- feature:支持 js 代码的链路 trace 并点击跳转
- feat: 支持 farm 中使用
- antd 弹窗无法定位 HOT 7
- 手动指定 vscode 的路径时,无法定位到具体的代码行和列
- macbook m1 pro 设置了vscode路径,为什么定位后永远在组件的第一行,但是用ide就没这个问题 HOT 3
- 无法在wsl2 中使用 HOT 1
- mac 每次跳转 vscode 都会打开一个新的图标 HOT 2
- nextjs 偶尔不生效 HOT 1
- 有没有考虑添加个浏览器插件呢 HOT 1
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 code-inspector.