Babel7でwebpack.config.babel.jsを動かす 普通にやろうとすると、SyntaxError: Unexpected token importで怒られる。 @babel/registerを入れると解決します。 参考:https://github.com/webpack/webpack/issues/5960 私の設定を載せます。 concurrentlyとeslintは必須ではないです。 { "name": "hello babel7", "version": "1.0.0", "description": "", "private": true, "scripts": { "webpack": "webpack -w", "lint": "eslint src/*.*", "build": "webpack", "start": "concurrently \"np
