Skip to content

Commit 5f179ee

Browse files
committed
Fix Build Script
1 parent 88dc52e commit 5f179ee

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

index.js

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
var __defProp = Object.defineProperty;
2-
var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
3-
var __export = (target, all) => {
4-
for (var name in all)
5-
__defProp(target, name, {get: all[name], enumerable: true});
6-
};
7-
8-
// src/wc-markdown.js
9-
__markAsModule(exports);
10-
__export(exports, {
11-
WCMarkdown: () => WCMarkdown
12-
});
13-
141
// node_modules/prism-es6/prism.js
152
var _self = {};
163
var Prism = function() {
@@ -2535,3 +2522,6 @@ var WCMarkdown = class extends HTMLElement {
25352522
}
25362523
};
25372524
customElements.define("wc-markdown", WCMarkdown);
2525+
export {
2526+
WCMarkdown
2527+
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"start": "npx live-server --no-browser --port=5500 --open=dev",
1717
"lint": "esmtk lint",
1818
"build": "npm run build:esm && npm run build:min",
19-
"build:esm": "esmtk commonjs src/wc-markdown.js index.js",
19+
"build:esm": "esmtk bundle src/wc-markdown.js index.js",
2020
"build:min": "esmtk minify src/wc-markdown.js index.min.js",
2121
"copy": "npm run copy:themes && npm run copy:components",
2222
"copy:themes": "cp -r node_modules/prism-es6/themes themes",

0 commit comments

Comments
 (0)