From 037ee5fd40af0117a1eb8d362b4ae97429499f16 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Tue, 30 Apr 2019 10:28:36 +0900 Subject: [PATCH] Fix webpack --- src/background/domains/Completions.js | 6 +++--- webpack.config.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/background/domains/Completions.js b/src/background/domains/Completions.js index 4e4219f..f399743 100644 --- a/src/background/domains/Completions.js +++ b/src/background/domains/Completions.js @@ -19,9 +19,9 @@ export default class Completions { })); } - static EMPTY_COMPLETIONS = new Completions([]); - static empty() { - return Completions.EMPTY_COMPLETIONS; + return EMPTY_COMPLETIONS; } } + +let EMPTY_COMPLETIONS = new Completions([]); diff --git a/webpack.config.js b/webpack.config.js index 9694fd5..d9c60cc 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -24,7 +24,7 @@ config = { exclude: /node_modules/, loader: 'babel-loader', query: { - presets: ['react', 'stage-2'] + presets: ['@babel/react'] } }, {