mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
* Added a first version of the PyScript Service Worker * Fix typo as suggested Co-authored-by: Fabio Pliger <fpliger@users.noreply.github.com> --------- Co-authored-by: Fabio Pliger <fpliger@users.noreply.github.com>
17 lines
481 B
JavaScript
17 lines
481 B
JavaScript
// This file generates /core.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";
|
|
|
|
export default {
|
|
input: "./src/sw.js",
|
|
plugins: process.env.NO_MIN ? [nodeResolve()] : [nodeResolve(), terser()],
|
|
output: {
|
|
esModule: false,
|
|
inlineDynamicImports: true,
|
|
file: "./pyscript.sw.js",
|
|
format: "iife",
|
|
},
|
|
};
|