liferay-npm-bundler-plugin-replace-browser-modules
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -27,2 +27,6 @@ 'use strict'; | ||
var _path = require('path'); | ||
var _path2 = _interopRequireDefault(_path); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -41,4 +45,4 @@ | ||
var src = pkgDir + '/' + browser; | ||
var dest = pkgDir + '/' + main; | ||
var src = _path2.default.join(pkgDir, browser); | ||
var dest = _path2.default.join(pkgDir, main); | ||
@@ -65,3 +69,3 @@ replaceFile(pkgId, src, browser, dest, main); | ||
var to = browser[from]; | ||
var dest = pkgDir + '/' + from; | ||
var dest = _path2.default.join(pkgDir, from); | ||
@@ -71,3 +75,3 @@ if (to == false) { | ||
} else { | ||
var src = pkgDir + '/' + to; | ||
var src = _path2.default.join(pkgDir, to); | ||
@@ -74,0 +78,0 @@ replaceFile(pkgId, src, to, dest, from); |
{ | ||
"name": "liferay-npm-bundler-plugin-replace-browser-modules", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A liferay-npm-bundler plugin to replace files listed under the browser/module entry of package.json files.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
import fs from 'fs'; | ||
import path from 'path'; | ||
@@ -29,4 +30,4 @@ /** | ||
const src = pkgDir + '/' + browser; | ||
const dest = pkgDir + '/' + main; | ||
const src = path.join(pkgDir, browser); | ||
const dest = path.join(pkgDir, main); | ||
@@ -48,3 +49,3 @@ replaceFile(pkgId, src, browser, dest, main); | ||
const to = browser[from]; | ||
const dest = pkgDir + '/' + from; | ||
const dest = path.join(pkgDir, from); | ||
@@ -54,3 +55,3 @@ if (to == false) { | ||
} else { | ||
const src = pkgDir + '/' + to; | ||
const src = path.join(pkgDir, to); | ||
@@ -57,0 +58,0 @@ replaceFile(pkgId, src, to, dest, from); |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
28484
21
387
1