serverless-build-plugin
Advanced tools
Comparing version 2.0.1-0 to 2.0.1-1
@@ -0,1 +1,6 @@ | ||
## 2.0.1 - Jun 13 2017 | ||
- [x] Removed `babili` option. | ||
- You can add it to your .babelrc yourself | ||
## 2.0.0 - Jun 12 2017 | ||
@@ -2,0 +7,0 @@ |
{ | ||
"name": "serverless-build-plugin", | ||
"version": "2.0.1-0", | ||
"version": "2.0.1-1", | ||
"description": "A Node.js focused build optimizer plugin for serverless", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -296,2 +296,6 @@ "use strict"; | ||
: undefined, | ||
babel: this.config.babel, | ||
babili: this.config.babili, | ||
sourceMaps: this.config.sourceMaps, | ||
transformExtensions: this.config.transformExtensions, | ||
logger: this.logger, | ||
@@ -298,0 +302,0 @@ archive: artifact, |
@@ -14,3 +14,3 @@ /// <reference types="archiver" /> | ||
babel: any; | ||
babili: false; | ||
babili: boolean; | ||
uglify: any; | ||
@@ -25,6 +25,6 @@ sourceMaps: boolean; | ||
babel?: any; | ||
babili?: false; | ||
babili?: boolean; | ||
uglify?: any; | ||
sourceMaps?: boolean; | ||
transformExtensions?: string; | ||
transformExtensions?: string[]; | ||
followSymlinks?: boolean; | ||
@@ -31,0 +31,0 @@ }); |
@@ -53,2 +53,3 @@ "use strict"; | ||
function SourceBundler(config) { | ||
this.babili = false; | ||
this.sourceMaps = false; | ||
@@ -55,0 +56,0 @@ this.transformExtensions = ['ts', 'js', 'jsx', 'tsx']; |
@@ -21,7 +21,4 @@ "use strict"; | ||
} | ||
try { | ||
// eslint-disable-next-line | ||
this.babel = require(requireResolve('babel-core', { cwd: this.options.servicePath })); | ||
} | ||
catch (err) { } | ||
// eslint-disable-next-line | ||
this.babel = require(requireResolve('babel-core', { cwd: this.options.servicePath })); | ||
} | ||
@@ -28,0 +25,0 @@ BabelTransform.prototype.run = function (_a) { |
@@ -19,7 +19,4 @@ "use strict"; | ||
this.options = __assign({ skipOnError: true, logErrors: false }, options); | ||
try { | ||
// eslint-disable-next-line | ||
this.uglify = require(requireResolve('uglify-js', { cwd: this.options.servicePath })); | ||
} | ||
catch (err) { } | ||
// eslint-disable-next-line | ||
this.uglify = require(requireResolve('uglify-js', { cwd: this.options.servicePath })); | ||
} | ||
@@ -26,0 +23,0 @@ UglifyTransform.prototype.run = function (_a) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
148346
2269