MCPcopy
hub / github.com/webpack/webpack / emit

Method emit

lib/css/CssParser.js:2957–2978  ·  view source on GitHub ↗
(start, end, isString)

Source from the content-addressed store, hash-verified

2955 * @returns {void}
2956 */
2957 const emit = (start, end, isString) => {
2958 const { line: sl, column: sc } = locConverter.get(start);
2959 const { line: el, column: ec } = locConverter.get(end);
2960 const name = unescapeRange(
2961 isString ? start + 1 : start,
2962 isString ? end - 1 : end
2963 );
2964 addCssExport(
2965 sl,
2966 sc,
2967 el,
2968 ec,
2969 name,
2970 getReexport(name),
2971 [start, end],
2972 true,
2973 CssIcssExportDependency.EXPORT_MODE.ONCE,
2974 isGridProperty
2975 ? CssIcssExportDependency.EXPORT_TYPE.GRID_CUSTOM_IDENTIFIER
2976 : CssIcssExportDependency.EXPORT_TYPE.NORMAL
2977 );
2978 };
2979 // Collect idents/strings to export — top-level only, except grid-template recurses (`[line-name]` blocks live in `repeat(…)`).
2980 /** @type {(cvs: AstNode[]) => void} */
2981 const walkExports = (cvs) => {

Callers 2

proxyFetchFunction · 0.80
index.jsFile · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected