From 4c6b0298b932b16ae15a06ada01566c4ffad243e Mon Sep 17 00:00:00 2001 From: weak_ptr Date: Wed, 13 Mar 2019 11:36:20 +0800 Subject: [PATCH] [hotfix] upgrade dependency for windows support. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit see ohm-js issue: https://github.com/harc/ohm/issues/205 --- package.json | 5 +++-- webpack.config.js | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c37ffb3..e1de479 100644 --- a/package.json +++ b/package.json @@ -24,11 +24,12 @@ "babel-core": "^6.17.0", "babel-loader": "^6.2.5", "babel-preset-latest": "^6.16.0", - "ohm-js": "^0.12.3", + "ohm-js": "^0.14.0", "webpack": "^1.13.2" }, "devDependencies": { "chai": "^3.5.0", + "json-loader": "^0.5.7", "mocha": "^3.1.0" } -} +} \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index 8e82977..35657e7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -13,7 +13,8 @@ module.exports = { }, module: { loaders: [ - { test: /\.js$/, exclude: /node_modules/, loader: "babel-loader"}, + { test: /\.js$/, exclude: /node_modules/, loader: "babel-loader" }, + { test: /\.json$/, loader: 'json-loader' } ] }, plugins: [