在下面的代码示例中,为什么注释行无法导入标记的?我使用的是https://github.com/shama/es6-loader使用带WebPack的ES6模块,为什么还需要
module $ from 'jquery';
module React from 'react';
//import { marked } from 'marked';
var marked = require("marked");
这里有一个样品库:https://github.com/justin808/react-tutorial-hot/tree/es6
本演示展示: 1的WebPack和热重装 2.阵营 3. ES6
可能的重复[如何在webpack.config.js中使用ES6?](https://stackoverflow.com/questions/31903692/how-can-i-use-es6-in-webpack-config-js ) – meza 2017-10-23 21:34:35