Comments (2)
??我是要升级mina-webpack么?
from tina.
排查出原因了。
corejs 为了在部分浏览器中(比如 IE 10-11)兼容 ES2015 中的 Number.parseInt / Number.parseFloat,将所有访问 parseInt
/ parseFloat
的操作都改为 从全局变量中读取。
而微信小程序的环境里,并没有把这两个变量放入任何可以被开发者访问到的全局对象中 (global
和 wx
以及 corejs 所使用的 new Function('return this')()
)。
现在 mina-runtime-webpack-plugin 会在运行时脚本中自动地将这两个变量注入全局对象,应该修复了这个问题。
可以将这个包升级到 1.0.2 以上验证:
npm i --save-dev @tinajs/mina-runtime-webpack-plugin@^1.0.2
gl 😉
from tina.
Related Issues (20)
- bug: component 组件中定义的 data 数据对象被共享 HOT 7
- tina 能够支持多页配置? HOT 3
- 自动引入组件需求 HOT 2
- 有没有模板增强计划,比如双向绑定 HOT 2
- webstorm <config> 部块也设置语法高亮
- 原生app的全局组件配置失败 HOT 1
- page 怎么 使用 selectComponent HOT 2
- 请问能不能支持把config放到script标签内部? HOT 3
- eslint 自动格式化问题 HOT 2
- 项目引入 echarts-for-weixin 库,webpack 编译报错 HOT 1
- vscode Vetur插件各种报错 HOT 2
- 请问有没有集成 echarts 的例子 HOT 2
- tinajs 支持引入原生代码的 Components 吗? HOT 7
- 引入图片后报错 HOT 1
- Page缺少getTabBar() HOT 3
- Page缺少getOpenerEventChannel() HOT 1
- 请问一下如果从现有的原生小程序过渡到tina? HOT 1
- 支持快应用吗? HOT 1
- 依赖包中的图片资源不能被编译
- 支持webpack5吗 HOT 2
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 tina.