Comments (5)
谷歌到一篇博客说了下使用babel转换的代码,调试不方便的问题。但我太多基本概念都没有,看不懂。不知道在哪里配置。
from antd-init.
启用 source-map 。
from antd-init.
你好,可不可以具体一点,我很多基本概念都没有。
我个人的理解是sourcemap已经起作用了。babel先把代码从es6转为es5,然后webpack把代码打包为单文件。sourcemap现在对应的是已经被babel转过的es5代码。(不知道我理解的对不对)
现在想让sourcemap对应上转换前的(es6)的代码,但不知道怎么做。。。。。
from antd-init.
抱歉,前面没看仔细,确实有这个问题。es3ify 没有处理 source-map,所以这部分目前是转换不了的。如果你的项目不需要支持 IE8,或者调试阶段不需要考虑 IE8,可以先把这行注释掉:
// Fix ie8 compatibility
webpackConfig.module.loaders.unshift({
test: /\.jsx?$/,
loader: 'es3ify-loader',
});
from antd-init.
thanks。的确是这样。
from antd-init.
Related Issues (20)
- 静态数据不加载,不知道如何调试 HOT 1
- How to use webpack2 customized the antd theme and icon url. HOT 4
- antd主题切换 HOT 3
- antd主题切换后自定义的css被覆盖的问题 HOT 1
- 自定义主题后,pagination组件按钮样式异常
- theme:导入报错小细节
- theme:导入报错小细节 HOT 1
- build后报错,该如何解决
- 如果我用的脚手架不是antd-init 和 dva-cli呢?该怎么处理? HOT 1
- 如何针对不同的entry做不同的modifyVars HOT 2
- 自定义iconfont路径只能用绝对路径? HOT 2
- 如何获取Icon的style值以及动态的改变style?
- 使用 parceljs ,本地部署 Iconfont 失败
- 想问下,不想修改整个主题,只想要修改某个组件的样式应该怎么做? HOT 1
- 在antd-pro中使用图标本地化时,报错
- Invalid setting font-family HOT 1
- my theme does not change help
- Translate this example to english
- 请问如果使用package.theme来自定义iconfont的路径无效,可以参考这个解决方案。
- 提错地方了,请无视 HOT 4
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 antd-init.