@serwist/build
Version:
A module that integrates into your build process, helping you generate a manifest of local files that should be precached.
47 lines (42 loc) • 1.44 kB
text/typescript
/*
Copyright 2018 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
import { getManifest } from "./get-manifest.js";
import { injectManifest } from "./inject-manifest.js";
import { DEFAULT_GLOB_PATTERNS } from "./lib/constants.js";
import { errors } from "./lib/errors.js";
import { escapeRegExp } from "./lib/escape-regexp.js";
import { getFileManifestEntries } from "./lib/get-file-manifest-entries.js";
import { getSourceMapURL } from "./lib/get-source-map-url.js";
import { rebasePath } from "./lib/rebase-path.js";
import { replaceAndUpdateSourceMap } from "./lib/replace-and-update-source-map.js";
import { transformManifest } from "./lib/transform-manifest.js";
import { translateURLToSourcemapPaths } from "./lib/translate-url-to-sourcemap-paths.js";
import { validateGetManifestOptions, validateInjectManifestOptions } from "./lib/validate-options.js";
// TODO: remove in v10.
/**
* Use `JSON.stringify` instead.
*
* @deprecated
*/
const stringify = JSON.stringify;
export {
errors,
DEFAULT_GLOB_PATTERNS,
escapeRegExp,
getFileManifestEntries,
getManifest,
getSourceMapURL,
injectManifest,
rebasePath,
replaceAndUpdateSourceMap,
stringify,
transformManifest,
translateURLToSourcemapPaths,
validateGetManifestOptions,
validateInjectManifestOptions,
};
export type * from "./types.js";