我正在尝试通过以下代码流学习jspm和systemjs,但它似乎不起作用:
index.html
Emulator: emulator: ERROR: x86_64 emulation currently requires hardware acceleration!
main.js:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"
<title>Systemjs</title>
</head>
<body>
<script src="https://jspm.io/system@0.19.js"></script>
<script>
System.config({transpiler: 'babel'});
System.import('./main.js');
</script>
</body>
</html>
package.json:
import { sum, kebabCase } from 'npm:lodash'
console.log(kebabCase('I work here'))
我尝试在网上搜索解决方案,但找不到任何解决方案。 任何帮助都非常感谢。预先感谢