6
나는이 같은 웹팩 설정 :예기치 않은 토큰 수출 웹팩
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
}
]
그리고 바벨 설정 :
{
"presets": ['es2015'],
"plugins": ['transform-runtime']
}
그러나 브라우저가이 메시지를 보여줍니다
Uncaught SyntaxError: Unexpected token export
잘못 무엇입니까?
될 웹팩 2
loaders
를 사용하는 경우? – d4nyll'presets'에'stage-0'을 추가 할 수 있습니다. –