MCPcopy
hub / github.com/webpack/webpack / makeState

Function makeState

test/HtmlParser.unittest.js:64–74  ·  view source on GitHub ↗
(module, { outputModule = false, css = false } = {})

Source from the content-addressed store, hash-verified

62 * @returns {import("../lib/Parser").ParserState} parser state
63 */
64const makeState = (module, { outputModule = false, css = false } = {}) =>
65 /** @type {import("../lib/Parser").ParserState} */ (
66 /** @type {unknown} */ ({
67 module,
68 compilation: {
69 outputOptions: { hashFunction: "md4", module: outputModule },
70 compiler: { context: path.resolve(__dirname, "..") },
71 options: { experiments: { css } }
72 }
73 })
74 );
75
76describe("HtmlParser", () => {
77 it("should aggregate inline script content across all text children", () => {

Callers 2

sourceRequestsFunction · 0.85

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected