@pictogrammers/element-esbuild 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/element-build.js
CHANGED
|
@@ -2246,6 +2246,7 @@ error: ${text}`);
|
|
|
2246
2246
|
|
|
2247
2247
|
// scripts/element-build.ts
|
|
2248
2248
|
var import_esbuild = __toESM(require_main(), 1);
|
|
2249
|
+
import { createRequire } from "node:module";
|
|
2249
2250
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
2250
2251
|
|
|
2251
2252
|
// scripts/htmlDependentsPlugin.ts
|
|
@@ -2656,6 +2657,7 @@ ${indent}`);
|
|
|
2656
2657
|
}
|
|
2657
2658
|
|
|
2658
2659
|
// scripts/element-build.ts
|
|
2660
|
+
globalThis.require = createRequire(import.meta.url);
|
|
2659
2661
|
var plugins = [htmlDependentsPlugin, rebuildNotifyPlugin];
|
|
2660
2662
|
var entryPoints = [];
|
|
2661
2663
|
var green2 = (text) => `\x1B[32m${text}\x1B[0m`;
|
package/bin/element-publish.js
CHANGED
package/bin/element-start.js
CHANGED
|
@@ -2246,6 +2246,7 @@ error: ${text}`);
|
|
|
2246
2246
|
|
|
2247
2247
|
// scripts/element-start.ts
|
|
2248
2248
|
var import_esbuild = __toESM(require_main(), 1);
|
|
2249
|
+
import { createRequire } from "node:module";
|
|
2249
2250
|
|
|
2250
2251
|
// node_modules/chokidar/index.js
|
|
2251
2252
|
import { EventEmitter } from "node:events";
|
|
@@ -4388,6 +4389,7 @@ ${indent}`);
|
|
|
4388
4389
|
}
|
|
4389
4390
|
|
|
4390
4391
|
// scripts/element-start.ts
|
|
4392
|
+
globalThis.require = createRequire(import.meta.url);
|
|
4391
4393
|
var plugins = [htmlDependentsPlugin, rebuildNotifyPlugin];
|
|
4392
4394
|
var green2 = (text) => `\x1B[32m${text}\x1B[0m`;
|
|
4393
4395
|
var red2 = (text) => `\x1B[31m${text}\x1B[0m`;
|
package/package.json
CHANGED
package/scripts/element-build.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
// Some dependencies are still commonjs :'(
|
|
4
|
+
import { createRequire } from "node:module";
|
|
5
|
+
globalThis.require = createRequire(import.meta.url);
|
|
6
|
+
|
|
3
7
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
4
8
|
import { build } from 'esbuild';
|
|
5
9
|
|
package/scripts/element-start.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
// Some dependencies are still commonjs :'(
|
|
4
|
+
import { createRequire } from "node:module";
|
|
5
|
+
globalThis.require = createRequire(import.meta.url);
|
|
6
|
+
|
|
3
7
|
import { context } from 'esbuild';
|
|
4
8
|
import chokidar from 'chokidar';
|
|
5
9
|
import { pathToFileURL, fileURLToPath } from 'node:url';
|