Sha256: b3ec5d2dff38dc7bf38dd752fc15d7158ac002790458355f5e26c53f1d1a9f93

Contents?: true

Size: 687 Bytes

Versions: 26

Compression:

Stored size: 687 Bytes

Contents

"use strict";

var _minify = _interopRequireDefault(require("./minify"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

module.exports = (options, callback) => {
  try {
    // 'use strict' => this === undefined (Clean Scope)
    // Safer for possible security issues, albeit not critical at all here
    // eslint-disable-next-line no-new-func, no-param-reassign
    options = new Function('exports', 'require', 'module', '__filename', '__dirname', `'use strict'\nreturn ${options}`)(exports, require, module, __filename, __dirname);
    callback(null, (0, _minify.default)(options));
  } catch (errors) {
    callback(errors);
  }
};

Version data entries

26 entries across 25 versions & 8 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/terser-webpack-plugin/dist/worker.js
disco_app-0.18.0 test/dummy/node_modules/terser-webpack-plugin/dist/worker.js
disco_app-0.18.2 test/dummy/node_modules/terser-webpack-plugin/dist/worker.js
disco_app-0.16.1 test/dummy/node_modules/terser-webpack-plugin/dist/worker.js
disco_app-0.15.2 test/dummy/node_modules/terser-webpack-plugin/dist/worker.js
disco_app-0.18.4 test/dummy/node_modules/terser-webpack-plugin/dist/worker.js
disco_app-0.18.1 test/dummy/node_modules/terser-webpack-plugin/dist/worker.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/terser-webpack-plugin/dist/worker.js
disco_app-0.14.0 test/dummy/node_modules/terser-webpack-plugin/dist/worker.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/terser-webpack-plugin/dist/worker.js
tang-0.2.1 spec/tang_app/node_modules/webpack/node_modules/terser-webpack-plugin/dist/worker.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/webpack/node_modules/terser-webpack-plugin/dist/worker.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/webpack/node_modules/terser-webpack-plugin/dist/worker.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/webpack/node_modules/terser-webpack-plugin/dist/worker.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/webpack/node_modules/terser-webpack-plugin/dist/worker.js
tang-0.2.0 spec/tang_app/node_modules/webpack/node_modules/terser-webpack-plugin/dist/worker.js
tang-0.1.0 spec/tang_app/node_modules/webpack/node_modules/terser-webpack-plugin/dist/worker.js
tang-0.0.9 spec/tang_app/node_modules/webpack/node_modules/terser-webpack-plugin/dist/worker.js
enju_library-0.3.8 spec/dummy/node_modules/webpack/node_modules/terser-webpack-plugin/dist/worker.js
jester-data-8.0.0 node_modules/terser-webpack-plugin/dist/worker.js