wangxinkai

Results 13 comments of wangxinkai

问一个看似不大相关的问题, 假设:test模块打包出的esm规范的文件 `test.esm.js` 有下面三种引用方式: 1. 发布到npm,在目标工程中添加依赖,使用`import test from 'test'`直接引入 2. 使用`import test from './node_modules/test/dist/test.esm.js'`引入 3. 把打包后的文件`test.esm.js` 拷贝到目标工程直接引用 `import test from './test.esm.js'` 这三种引入方式 在目标工程打包时会不会有区别,我发现2 3 两种情况有可能会报错

> @Zippowxk 第三种方式可能会报错,你项目工程里面不一定有你test.esm.js的运行环境。 有道理 但是第二种方式报错,就是因为打包环境不一致导致的吗?比如eslint 和 babel的preset不一致

- [vue-vconsole-devtools](https://github.com/Zippowxk/vue-vconsole-devtools) - vue-devtools 嵌入vconsole插件 ,在移动端获得官方debug体验 - 无需安装浏览器工具,Safari兼容,微信浏览器兼容,支持Vue2 Vue3 - ![gif](https://github.com/Zippowxk/vue-vconsole-devtools/raw/master/docs/mobile.gif)

- [vue-router-keep-alive-helper](https://github.com/Zippowxk/vue-router-keep-alive-helper) - Vue 2.x keep-alive页面缓存自动管理插件 (缓存页面堆栈式管理插件) - 模拟移动端原生堆栈式缓存管理方式,返回自动销毁栈顶页面,无侵入代码,一行搞定缓存管理 - ![gif](https://github.com/Zippowxk/vue-router-keep-alive-helper/raw/main/assets/stack.gif)

- [stack-keep-alive](https://github.com/Zippowxk/stack-keep-alive) - Vue 3.x 堆栈式缓存管理组件 - 使用简单,良好支持Vue 3.x

The Component works fine, the behavior is the logics of transform

wow , 看起来是一个非常不错的临时方案,感谢分享

已更新支持Vue3,TS兼容性更好,可能已经解决了你的问题,不妨更新一下,期待你的反馈

因为该项目依赖于vue-devtools工程进行打包,该包目前不支持ES5,所以目前无法支持ES5