mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
* patched an issue with wasmoon randomly asking to resolve proxy references * simplified pyodide and micropython dance by grouping their common utilities together * created an integration test around a worker to main thread input between MicroPython and Lua * commented some weird bugs / funny behaviors around both MicroPython and Pyodide * other minor clean ups
25 lines
759 B
JavaScript
25 lines
759 B
JavaScript
// This file generates /min.js minified version of the module, which is
|
|
// the default exported as npm entry.
|
|
|
|
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
|
import terser from "@rollup/plugin-terser";
|
|
|
|
import { createRequire } from "node:module";
|
|
import { fileURLToPath } from "node:url";
|
|
import { dirname, join, resolve } from "node:path";
|
|
|
|
createRequire(import.meta.url)("./build_runtimes.cjs");
|
|
|
|
const WORKERS_DIR = resolve(
|
|
join(dirname(fileURLToPath(import.meta.url)), "..", "esm", "worker"),
|
|
);
|
|
|
|
export default {
|
|
input: join(WORKERS_DIR, "_template.js"),
|
|
plugins: process.env.NO_MIN ? [nodeResolve()] : [nodeResolve(), terser()],
|
|
output: {
|
|
esModule: true,
|
|
file: join(WORKERS_DIR, "__template.js"),
|
|
},
|
|
};
|