From 1a4f753b8dcdfeae5eae04fa41f0430811917400 Mon Sep 17 00:00:00 2001 From: sanex3339 Date: Mon, 12 Sep 2016 23:48:03 +0300 Subject: [PATCH] Migration to ESTree --- package.json | 1 + webpack.config.js | 10 +++------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index c546f53f..a9d26512 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "@types/escodegen": "^0.0.5", "@types/esprima": "^2.1.31", "@types/estraverse": "^0.0.5", + "@types/estree": "^0.0.32", "@types/format-unicorn": "^0.0.28", "@types/joi": "^9.0.31", "@types/mkdirp": "^0.3.28", diff --git a/webpack.config.js b/webpack.config.js index 036f0f17..2689f82d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,15 +1,11 @@ 'use strict'; -let fs = require("fs"), +var fs = require("fs"), nodeExternals = require('webpack-node-externals'), webpack = require('webpack'); function getLicenseText () { - return `/* -Copyright (C) 2016 Timofey Kachalov - -${fs.readFileSync('./LICENSE.BSD', 'utf8')} -*/`; + return "/*\nCopyright (C) 2016 Timofey Kachalov \n\n" + fs.readFileSync('./LICENSE.BSD', 'utf8') + "\n*/"; } module.exports = { @@ -31,7 +27,7 @@ module.exports = { plugins: [ new webpack.BannerPlugin( { - banner: `${getLicenseText()}\n\nrequire("source-map-support").install();\n`, + banner: getLicenseText() + '\n\nrequire("source-map-support").install();\n', raw: true, entryOnly: false }