babel-sourcemap:重现Babel错误,当用作React子代时,字符串文字被错误地映射

时间:2024-04-16 01:18:54
【文件属性】:

文件名称:babel-sourcemap:重现Babel错误,当用作React子代时,字符串文字被错误地映射

文件大小:31KB

文件格式:ZIP

更新时间:2024-04-16 01:18:54

babel sourcemap babel-sourcemap JavaScript

Babel Sourcemap Repro 该存储库演示了Babel Sourcemap生成的问题。 跑步: cd repro npm install cd .. npm install npm start 在输出中: "div" source: src/App.jsx:5:5 target: lib/App.js:13:39 "App" source: src/App.jsx:5:19 target: lib/App.js:14:15 "h1" source: src/App.jsx:6:7 target: lib/App.js:15:35 "Welcome to my application!" source: src/App.jsx:6:7 target: lib/App.js:15:46 "This is my app!" source:


【文件预览】:
babel-sourcemap-master
----repro()
--------.gitignore(20B)
--------index.js(3KB)
--------package-lock.json(2KB)
--------package.json(131B)
----src()
--------App.jsx(230B)
--------index.jsx(121B)
----babel.config.js(249B)
----.gitignore(33B)
----readme.md(1KB)
----package-lock.json(112KB)
----package.json(354B)

网友评论