Skip to content

Commit

Permalink
Update gitignore, add default aliases to plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelthq committed Mar 7, 2019
1 parent 83365fc commit f94d39b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/*
yarn.lock
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"name": "vc-webpack-vendors",
"description": "This package contains Visual Composer vendors for backward compatibility and element.bundle.js vendors extracting.",
"version": "1.0.0",
"version": "1.0.1",
"main": "index.js",
"devDependencies": {},
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions webpack.plugin.customAlias.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var defaultAliasesMap = require('./webpack.oldlibs.aliasesMap');

/**
* This plugin is used to create backward compatibility aliases for un-updated old elements or any other packages
* That contains references to old libraries like, babel-runtime (not the @babel/runtime) and etc
*/
var VcWebpackCustomAliasPlugin =
/*#__PURE__*/
function () {
function VcWebpackCustomAliasPlugin(aliasesMap, isDev) {
function VcWebpackCustomAliasPlugin(aliasesMap, isDev = false) {
_classCallCheck(this, VcWebpackCustomAliasPlugin);

this.aliasesMap = aliasesMap;
this.aliasesMap = aliasesMap ? aliasesMap : defaultAliasesMap;
this.isDev = isDev;
}

Expand Down

0 comments on commit f94d39b

Please sign in to comment.