Skip to content

Commit

Permalink
chore(deps): Update legacy rollup plugins (#1894)
Browse files Browse the repository at this point in the history
  • Loading branch information
pravi committed Jan 8, 2021
1 parent f7b10a8 commit a8bd8b3
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 57 deletions.
10 changes: 4 additions & 6 deletions lib/marked.esm.js
@@ -1,6 +1,6 @@
/**
* marked - a markdown parser
* Copyright (c) 2011-2020, Christopher Jeffrey. (MIT Licensed)
* Copyright (c) 2011-2021, Christopher Jeffrey. (MIT Licensed)
* https://github.com/markedjs/marked
*/

Expand All @@ -9,8 +9,9 @@
* The code in this file is generated from files in ./src/
*/

function createCommonjsModule(fn, module) {
return module = { exports: {} }, fn(module, module.exports), module.exports;
function createCommonjsModule(fn) {
var module = { exports: {} };
return fn(module, module.exports), module.exports;
}

var defaults = createCommonjsModule(function (module) {
Expand Down Expand Up @@ -47,9 +48,6 @@ module.exports = {
changeDefaults
};
});
var defaults_1 = defaults.defaults;
var defaults_2 = defaults.getDefaults;
var defaults_3 = defaults.changeDefaults;

/**
* Helpers
Expand Down
10 changes: 4 additions & 6 deletions lib/marked.js
@@ -1,6 +1,6 @@
/**
* marked - a markdown parser
* Copyright (c) 2011-2020, Christopher Jeffrey. (MIT Licensed)
* Copyright (c) 2011-2021, Christopher Jeffrey. (MIT Licensed)
* https://github.com/markedjs/marked
*/

Expand Down Expand Up @@ -73,8 +73,9 @@
return it.next.bind(it);
}

function createCommonjsModule(fn, module) {
return module = { exports: {} }, fn(module, module.exports), module.exports;
function createCommonjsModule(fn) {
var module = { exports: {} };
return fn(module, module.exports), module.exports;
}

var defaults = createCommonjsModule(function (module) {
Expand Down Expand Up @@ -111,9 +112,6 @@
changeDefaults: changeDefaults
};
});
var defaults_1 = defaults.defaults;
var defaults_2 = defaults.getDefaults;
var defaults_3 = defaults.changeDefaults;

/**
* Helpers
Expand Down
4 changes: 2 additions & 2 deletions marked.min.js

Large diffs are not rendered by default.

102 changes: 64 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -36,6 +36,8 @@
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@markedjs/html-differ": "^3.0.4",
"@rollup/plugin-babel": "^5.2.2",
"@rollup/plugin-commonjs": "^17.0.0",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/git": "^9.0.0",
"@semantic-release/github": "^7.2.0",
Expand All @@ -54,8 +56,6 @@
"markdown-it": "12.0.4",
"node-fetch": "^2.6.1",
"rollup": "^2.35.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-license": "^2.2.0",
"semantic-release": "^17.3.1",
"titleize": "^2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.esm.js
@@ -1,4 +1,4 @@
const commonjs = require('rollup-plugin-commonjs');
const commonjs = require('@rollup/plugin-commonjs');
const license = require('rollup-plugin-license');

module.exports = {
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
@@ -1,5 +1,5 @@
const commonjs = require('rollup-plugin-commonjs');
const babel = require('rollup-plugin-babel');
const commonjs = require('@rollup/plugin-commonjs');
const babel = require('@rollup/plugin-babel').default;
const license = require('rollup-plugin-license');

module.exports = {
Expand Down

1 comment on commit a8bd8b3

@vercel
Copy link

@vercel vercel bot commented on a8bd8b3 Jan 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.