Use webpack to create a CommonJS module from micromark's ESM implementation, convert to using that.

This commit is contained in:
David Anson 2023-01-14 15:05:04 -08:00
parent 5038f6e154
commit bb0aa012b5
6 changed files with 57 additions and 5 deletions

View file

@ -0,0 +1,34 @@
// @ts-check
"use strict";
const shared = {
"entry": "./exports.mjs",
"output": {
"library": {
"type": "commonjs"
},
"path": __dirname
},
"target": "node"
};
module.exports = [
{
...shared,
"mode": "production",
"output": {
...shared.output,
"filename": "micromark.js"
}
},
{
...shared,
"devtool": false,
"mode": "development",
"output": {
...shared.output,
"filename": "micromark.dev.js"
}
}
];