mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
site specific flags
This commit is contained in:
parent
0906dd78a9
commit
920bbd8d69
8 changed files with 34 additions and 11 deletions
|
@ -1,10 +1,12 @@
|
|||
import { flagEnabled } from "../../scramjet";
|
||||
import { ScramjetClient } from "../client";
|
||||
|
||||
type Mapping = [string, number, number];
|
||||
|
||||
const sourcemaps: Record<string, Mapping[]> = {};
|
||||
|
||||
export const enabled = () => self.$scramjet.config.flags.sourcemaps;
|
||||
export const enabled = (client: ScramjetClient) =>
|
||||
flagEnabled("sourcemaps", client.url);
|
||||
|
||||
export default function (client: ScramjetClient, self: Self) {
|
||||
// every script will push a sourcemap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue