jetpack
Version:
Jetpack wraps webpack and nodemon to give you the best development workflow.
1,397 lines (1,328 loc) • 165 kB
Markdown
# Snapshot report for `test/build.test.js`
The actual snapshot is saved in `build.test.js.snap`.
Generated by [AVA](https://avajs.dev).
## build basic
> jetpack output for compiling pkg-basic
`␊
␊
␊
Asset Modules Size␊
bundle.4cab6b7cd74aca12.js 3 224 bytes␊
bundle.b3e6bb21.css - 21 bytes␊
runtime~bundle.a7333449859a9098.js - 1.1 KiB␊
jetpack › Building for production...␊
jetpack › Building modern bundle`
> /test/fixtures/pkg-basic/dist/index.html
`<!DOCTYPE html>␊
<html>␊
<head>␊
<meta charset='utf-8' />␊
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' />␊
<title>pkg-basic</title>␊
<link rel="stylesheet" href='/assets/bundle.b3e6bb21.css' />␊
␊
</head>␊
<body>␊
<div id='root'></div>␊
<script type='text/javascript'>␊
(()=>{"use strict";var r={},e={};function o(t){var n=e[t];if(void 0!==n)return n.exports;var a=e[t]={exports:{}};return r[t](a,a.exports,o),a.exports}o.m=r,o.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),o.r=r=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},(()=>{var r=[];o.O=(e,t,n,a)=>{if(t){a=a||0;for(var i=r.length;i>0&&r[i-1][2]>a;i--)r[i]=r[i-1];r[i]=[t,n,a];return}for(var l=1/0,i=0;i<r.length;i++){for(var[t,n,a]=r[i],u=!0,p=0;p<t.length;p++)(!1&a||l>=a)&&Object.keys(o.O).every(r=>o.O[r](t[p]))?t.splice(p--,1):(u=!1,a<l&&(l=a));if(u){r.splice(i--,1);var s=n();void 0!==s&&(e=s)}}return e}})(),o.rv=()=>"1.3.3",(()=>{var r={691:0};o.O.j=e=>0===r[e];var e=(e,t)=>{var n,a,[i,l,u]=t,p=0;if(i.some(e=>0!==r[e])){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);if(u)var s=u(o)}for(e&&e(t);p<i.length;p++)a=i[p],o.o(r,a)&&r[a]&&r[a][0](),r[a]=0;return o.O(s)},t=self.webpackChunkpkg_basic=self.webpackChunkpkg_basic||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))})(),o.ruid="bundler=rspack@1.3.3"})();␊
</script>␊
<script type='text/javascript' src='/assets/bundle.4cab6b7cd74aca12.js' async></script>␊
</body>␊
</html>␊
`
> /test/fixtures/pkg-basic/dist/assets/bundle.4cab6b7cd74aca12.js
'(self.webpackChunkpkg_basic=self.webpackChunkpkg_basic||[]).push([["71"],{66:function(e,n,c){"use strict";c.r(n)},909:function(e,n,c){c(66),document.querySelector("#root").innerHTML="hello world"}},function(e){e(e.s=909)}]);'
> /test/fixtures/pkg-basic/dist/assets/bundle.b3e6bb21.css
'body{background:#00f}'
> /test/fixtures/pkg-basic/dist/assets/runtime~bundle.a7333449859a9098.js
'(()=>{"use strict";var r={},e={};function o(t){var n=e[t];if(void 0!==n)return n.exports;var a=e[t]={exports:{}};return r[t](a,a.exports,o),a.exports}o.m=r,o.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),o.r=r=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},(()=>{var r=[];o.O=(e,t,n,a)=>{if(t){a=a||0;for(var i=r.length;i>0&&r[i-1][2]>a;i--)r[i]=r[i-1];r[i]=[t,n,a];return}for(var l=1/0,i=0;i<r.length;i++){for(var[t,n,a]=r[i],u=!0,p=0;p<t.length;p++)(!1&a||l>=a)&&Object.keys(o.O).every(r=>o.O[r](t[p]))?t.splice(p--,1):(u=!1,a<l&&(l=a));if(u){r.splice(i--,1);var s=n();void 0!==s&&(e=s)}}return e}})(),o.rv=()=>"1.3.3",(()=>{var r={691:0};o.O.j=e=>0===r[e];var e=(e,t)=>{var n,a,[i,l,u]=t,p=0;if(i.some(e=>0!==r[e])){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);if(u)var s=u(o)}for(e&&e(t);p<i.length;p++)a=i[p],o.o(r,a)&&r[a]&&r[a][0](),r[a]=0;return o.O(s)},t=self.webpackChunkpkg_basic=self.webpackChunkpkg_basic||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))})(),o.ruid="bundler=rspack@1.3.3"})();'
## build with all the features
> jetpack output for compiling pkg-with-everything
`␊
␊
␊
␊
␊
╭─[5:0]␊
╰────␊
5 │ }␊
6 │ export function load() {␊
7 │ ╭─▶ require([␊
8 │ │ './more.js'␊
9 │ ╰─▶ ]);␊
10 │ }␊
11 │ setTimeout(()=>{␊
Asset Modules Size␊
bundle.8dd76783.css - 353 bytes␊
bundle.c1172f583bee7a0a.js 4 1.26 KiB␊
runtime~bundle.3819bf1b32649e7d.js - 3.74 KiB␊
⚠ Critical dependency: the request of a dependency is an expression␊
jetpack › Building for production...␊
jetpack › Building modern bundle␊
jetpack › Compiled with 1 warning:`
> /test/fixtures/pkg-with-everything/dist/index.html
`<!DOCTYPE html>␊
<html>␊
<head>␊
<meta charset='utf-8' />␊
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' />␊
<title>pkg-with-everything</title>␊
<link rel="stylesheet" href='/assets/bundle.8dd76783.css' />␊
␊
</head>␊
<body>␊
<div id='root'></div>␊
<script type='text/javascript'>␊
(() => { // webpackBootstrap␊
"use strict";␊
var __webpack_modules__ = ({});␊
/************************************************************************/␊
// The module cache␊
var __webpack_module_cache__ = {};␊
␊
// The require function␊
function __webpack_require__(moduleId) {␊
␊
// Check if module is in cache␊
var cachedModule = __webpack_module_cache__[moduleId];␊
if (cachedModule !== undefined) {␊
return cachedModule.exports;␊
}␊
// Create a new module (and put it into the cache)␊
var module = (__webpack_module_cache__[moduleId] = {␊
exports: {}␊
});␊
// Execute the module function␊
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);␊
␊
// Return the exports of the module␊
return module.exports;␊
␊
}␊
␊
// expose the modules object (__webpack_modules__)␊
__webpack_require__.m = __webpack_modules__;␊
␊
/************************************************************************/␊
// webpack/runtime/has_own_property␊
(() => {␊
__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))␊
})();␊
// webpack/runtime/on_chunk_loaded␊
(() => {␊
var deferred = [];␊
__webpack_require__.O = (result, chunkIds, fn, priority) => {␊
if (chunkIds) {␊
priority = priority || 0;␊
for (var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--)␊
deferred[i] = deferred[i - 1];␊
deferred[i] = [chunkIds, fn, priority];␊
return;␊
}␊
var notFulfilled = Infinity;␊
for (var i = 0; i < deferred.length; i++) {␊
var [chunkIds, fn, priority] = deferred[i];␊
var fulfilled = true;␊
for (var j = 0; j < chunkIds.length; j++) {␊
if (␊
(priority & (1 === 0) || notFulfilled >= priority) &&␊
Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))␊
) {␊
chunkIds.splice(j--, 1);␊
} else {␊
fulfilled = false;␊
if (priority < notFulfilled) notFulfilled = priority;␊
}␊
}␊
if (fulfilled) {␊
deferred.splice(i--, 1);␊
var r = fn();␊
if (r !== undefined) result = r;␊
}␊
}␊
return result;␊
};␊
␊
})();␊
// webpack/runtime/rspack_version␊
(() => {␊
__webpack_require__.rv = () => ("1.3.3")␊
})();␊
// webpack/runtime/jsonp_chunk_loading␊
(() => {␊
␊
// object to store loaded and loading chunks␊
// undefined = chunk not loaded, null = chunk preloaded/prefetched␊
// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded␊
var installedChunks = {"691": 0,};␊
__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);␊
// install a JSONP callback for chunk loading␊
var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {␊
var [chunkIds, moreModules, runtime] = data;␊
// add "moreModules" to the modules object,␊
// then flag all "chunkIds" as loaded and fire callback␊
var moduleId, chunkId, i = 0;␊
if (chunkIds.some((id) => (installedChunks[id] !== 0))) {␊
for (moduleId in moreModules) {␊
if (__webpack_require__.o(moreModules, moduleId)) {␊
__webpack_require__.m[moduleId] = moreModules[moduleId];␊
}␊
}␊
if (runtime) var result = runtime(__webpack_require__);␊
}␊
if (parentChunkLoadingFunction) parentChunkLoadingFunction(data);␊
for (; i < chunkIds.length; i++) {␊
chunkId = chunkIds[i];␊
if (␊
__webpack_require__.o(installedChunks, chunkId) &&␊
installedChunks[chunkId]␊
) {␊
installedChunks[chunkId][0]();␊
}␊
installedChunks[chunkId] = 0;␊
}␊
return __webpack_require__.O(result);␊
};␊
␊
var chunkLoadingGlobal = self["webpackChunkpkg_with_everything"] = self["webpackChunkpkg_with_everything"] || [];␊
chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));␊
chunkLoadingGlobal.push = webpackJsonpCallback.bind(␊
null,␊
chunkLoadingGlobal.push.bind(chunkLoadingGlobal)␊
);␊
␊
})();␊
// webpack/runtime/rspack_unique_id␊
(() => {␊
__webpack_require__.ruid = "bundler=rspack@1.3.3";␊
␊
})();␊
/************************************************************************/␊
})()␊
;␊
</script>␊
<script type='text/javascript' src='/assets/bundle.c1172f583bee7a0a.js' async></script>␊
</body>␊
</html>␊
`
> /test/fixtures/pkg-with-everything/dist/assets/bundle.8dd76783.css
`body, html {␊
-webkit-backdrop-filter: blur(10px);␊
backdrop-filter: blur(10px);␊
background: red;␊
padding: 0;␊
}␊
␊
body {␊
background-color: #f0f8ff;␊
}␊
␊
.unicorn {␊
flex-direction: column;␊
display: flex;␊
}␊
␊
@media (width >= 767px) {␊
.unicorn {␊
flex-direction: row;␊
display: flex;␊
}␊
}␊
␊
@custom-media --wide-window (min-width: 30em);␊
␊
`
> /test/fixtures/pkg-with-everything/dist/assets/bundle.c1172f583bee7a0a.js
`(self["webpackChunkpkg_with_everything"] = self["webpackChunkpkg_with_everything"] || []).push([["71"], {␊
933: (function (module) {␊
function webpackEmptyContext(req) {␊
var e = new Error("Cannot find module '" + req + "'");␊
e.code = 'MODULE_NOT_FOUND';␊
throw e;␊
}␊
webpackEmptyContext.keys = () => ([]);␊
webpackEmptyContext.resolve = webpackEmptyContext;␊
webpackEmptyContext.id = 933;␊
module.exports = webpackEmptyContext;␊
␊
␊
}),␊
21: (function (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {␊
"use strict";␊
␊
// UNUSED EXPORTS: load, default␊
␊
;// CONCATENATED MODULE: ./unicorn.png␊
const unicorn_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAQElEQVR4AWP4///ffyTA8PvfjztnHt9ddvfn2z8g/pd3v66fen584ZV7C16C+J9e/3h05e3T26++Pf0J4v9HBQAAx0aUcca0LgAAAABJRU5ErkJggg==";␊
;// CONCATENATED MODULE: ./index.js␊
␊
␊
function main() {␊
return /*#__PURE__*/ React.createElement("div", null, img);␊
}␊
function load() {␊
__webpack_require__(933)([␊
'./more.js'␊
]);␊
}␊
setTimeout(()=>{␊
load();␊
}, 1000);␊
␊
␊
}),␊
␊
},function(__webpack_require__) {␊
var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId) }␊
var __webpack_exports__ = (__webpack_exec__(21));␊
␊
}␊
]);`
> /test/fixtures/pkg-with-everything/dist/assets/runtime~bundle.3819bf1b32649e7d.js
`(() => { // webpackBootstrap␊
"use strict";␊
var __webpack_modules__ = ({});␊
/************************************************************************/␊
// The module cache␊
var __webpack_module_cache__ = {};␊
␊
// The require function␊
function __webpack_require__(moduleId) {␊
␊
// Check if module is in cache␊
var cachedModule = __webpack_module_cache__[moduleId];␊
if (cachedModule !== undefined) {␊
return cachedModule.exports;␊
}␊
// Create a new module (and put it into the cache)␊
var module = (__webpack_module_cache__[moduleId] = {␊
exports: {}␊
});␊
// Execute the module function␊
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);␊
␊
// Return the exports of the module␊
return module.exports;␊
␊
}␊
␊
// expose the modules object (__webpack_modules__)␊
__webpack_require__.m = __webpack_modules__;␊
␊
/************************************************************************/␊
// webpack/runtime/has_own_property␊
(() => {␊
__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))␊
})();␊
// webpack/runtime/on_chunk_loaded␊
(() => {␊
var deferred = [];␊
__webpack_require__.O = (result, chunkIds, fn, priority) => {␊
if (chunkIds) {␊
priority = priority || 0;␊
for (var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--)␊
deferred[i] = deferred[i - 1];␊
deferred[i] = [chunkIds, fn, priority];␊
return;␊
}␊
var notFulfilled = Infinity;␊
for (var i = 0; i < deferred.length; i++) {␊
var [chunkIds, fn, priority] = deferred[i];␊
var fulfilled = true;␊
for (var j = 0; j < chunkIds.length; j++) {␊
if (␊
(priority & (1 === 0) || notFulfilled >= priority) &&␊
Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))␊
) {␊
chunkIds.splice(j--, 1);␊
} else {␊
fulfilled = false;␊
if (priority < notFulfilled) notFulfilled = priority;␊
}␊
}␊
if (fulfilled) {␊
deferred.splice(i--, 1);␊
var r = fn();␊
if (r !== undefined) result = r;␊
}␊
}␊
return result;␊
};␊
␊
})();␊
// webpack/runtime/rspack_version␊
(() => {␊
__webpack_require__.rv = () => ("1.3.3")␊
})();␊
// webpack/runtime/jsonp_chunk_loading␊
(() => {␊
␊
// object to store loaded and loading chunks␊
// undefined = chunk not loaded, null = chunk preloaded/prefetched␊
// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded␊
var installedChunks = {"691": 0,};␊
__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);␊
// install a JSONP callback for chunk loading␊
var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {␊
var [chunkIds, moreModules, runtime] = data;␊
// add "moreModules" to the modules object,␊
// then flag all "chunkIds" as loaded and fire callback␊
var moduleId, chunkId, i = 0;␊
if (chunkIds.some((id) => (installedChunks[id] !== 0))) {␊
for (moduleId in moreModules) {␊
if (__webpack_require__.o(moreModules, moduleId)) {␊
__webpack_require__.m[moduleId] = moreModules[moduleId];␊
}␊
}␊
if (runtime) var result = runtime(__webpack_require__);␊
}␊
if (parentChunkLoadingFunction) parentChunkLoadingFunction(data);␊
for (; i < chunkIds.length; i++) {␊
chunkId = chunkIds[i];␊
if (␊
__webpack_require__.o(installedChunks, chunkId) &&␊
installedChunks[chunkId]␊
) {␊
installedChunks[chunkId][0]();␊
}␊
installedChunks[chunkId] = 0;␊
}␊
return __webpack_require__.O(result);␊
};␊
␊
var chunkLoadingGlobal = self["webpackChunkpkg_with_everything"] = self["webpackChunkpkg_with_everything"] || [];␊
chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));␊
chunkLoadingGlobal.push = webpackJsonpCallback.bind(␊
null,␊
chunkLoadingGlobal.push.bind(chunkLoadingGlobal)␊
);␊
␊
})();␊
// webpack/runtime/rspack_unique_id␊
(() => {␊
__webpack_require__.ruid = "bundler=rspack@1.3.3";␊
␊
})();␊
/************************************************************************/␊
})()␊
;`
## build with lightningcss syntax lowering
> jetpack output for compiling pkg-with-lightningcss
`␊
␊
␊
Asset Modules Size␊
bundle.00652b435e8ba424.js 3 825 bytes␊
bundle.370a2434.css - 230 bytes␊
runtime~bundle.963f4a85891b7f43.js - 4.33 KiB␊
jetpack › Building for production...␊
jetpack › Building modern bundle`
> /test/fixtures/pkg-with-lightningcss/dist/index.html
`<!DOCTYPE html>␊
<html>␊
<head>␊
<meta charset='utf-8' />␊
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' />␊
<title>pkg-with-lightningcss</title>␊
<link rel="stylesheet" href='/assets/bundle.370a2434.css' />␊
␊
</head>␊
<body>␊
<div id='root'></div>␊
<script type='text/javascript'>␊
(() => { // webpackBootstrap␊
"use strict";␊
var __webpack_modules__ = ({});␊
/************************************************************************/␊
// The module cache␊
var __webpack_module_cache__ = {};␊
␊
// The require function␊
function __webpack_require__(moduleId) {␊
␊
// Check if module is in cache␊
var cachedModule = __webpack_module_cache__[moduleId];␊
if (cachedModule !== undefined) {␊
return cachedModule.exports;␊
}␊
// Create a new module (and put it into the cache)␊
var module = (__webpack_module_cache__[moduleId] = {␊
id: moduleId,␊
loaded: false,␊
exports: {}␊
});␊
// Execute the module function␊
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);␊
␊
// Flag the module as loaded␊
module.loaded = true;␊
// Return the exports of the module␊
return module.exports;␊
␊
}␊
␊
// expose the modules object (__webpack_modules__)␊
__webpack_require__.m = __webpack_modules__;␊
␊
/************************************************************************/␊
// webpack/runtime/has_own_property␊
(() => {␊
__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))␊
})();␊
// webpack/runtime/make_namespace_object␊
(() => {␊
// define __esModule on exports␊
__webpack_require__.r = (exports) => {␊
if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {␊
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });␊
}␊
Object.defineProperty(exports, '__esModule', { value: true });␊
};␊
})();␊
// webpack/runtime/node_module_decorator␊
(() => {␊
__webpack_require__.nmd = (module) => {␊
module.paths = [];␊
if (!module.children) module.children = [];␊
return module;␊
};␊
})();␊
// webpack/runtime/on_chunk_loaded␊
(() => {␊
var deferred = [];␊
__webpack_require__.O = (result, chunkIds, fn, priority) => {␊
if (chunkIds) {␊
priority = priority || 0;␊
for (var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--)␊
deferred[i] = deferred[i - 1];␊
deferred[i] = [chunkIds, fn, priority];␊
return;␊
}␊
var notFulfilled = Infinity;␊
for (var i = 0; i < deferred.length; i++) {␊
var [chunkIds, fn, priority] = deferred[i];␊
var fulfilled = true;␊
for (var j = 0; j < chunkIds.length; j++) {␊
if (␊
(priority & (1 === 0) || notFulfilled >= priority) &&␊
Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))␊
) {␊
chunkIds.splice(j--, 1);␊
} else {␊
fulfilled = false;␊
if (priority < notFulfilled) notFulfilled = priority;␊
}␊
}␊
if (fulfilled) {␊
deferred.splice(i--, 1);␊
var r = fn();␊
if (r !== undefined) result = r;␊
}␊
}␊
return result;␊
};␊
␊
})();␊
// webpack/runtime/rspack_version␊
(() => {␊
__webpack_require__.rv = () => ("1.3.3")␊
})();␊
// webpack/runtime/jsonp_chunk_loading␊
(() => {␊
␊
// object to store loaded and loading chunks␊
// undefined = chunk not loaded, null = chunk preloaded/prefetched␊
// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded␊
var installedChunks = {"691": 0,};␊
__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);␊
// install a JSONP callback for chunk loading␊
var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {␊
var [chunkIds, moreModules, runtime] = data;␊
// add "moreModules" to the modules object,␊
// then flag all "chunkIds" as loaded and fire callback␊
var moduleId, chunkId, i = 0;␊
if (chunkIds.some((id) => (installedChunks[id] !== 0))) {␊
for (moduleId in moreModules) {␊
if (__webpack_require__.o(moreModules, moduleId)) {␊
__webpack_require__.m[moduleId] = moreModules[moduleId];␊
}␊
}␊
if (runtime) var result = runtime(__webpack_require__);␊
}␊
if (parentChunkLoadingFunction) parentChunkLoadingFunction(data);␊
for (; i < chunkIds.length; i++) {␊
chunkId = chunkIds[i];␊
if (␊
__webpack_require__.o(installedChunks, chunkId) &&␊
installedChunks[chunkId]␊
) {␊
installedChunks[chunkId][0]();␊
}␊
installedChunks[chunkId] = 0;␊
}␊
return __webpack_require__.O(result);␊
};␊
␊
var chunkLoadingGlobal = self["webpackChunkpkg_with_lightningcss"] = self["webpackChunkpkg_with_lightningcss"] || [];␊
chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));␊
chunkLoadingGlobal.push = webpackJsonpCallback.bind(␊
null,␊
chunkLoadingGlobal.push.bind(chunkLoadingGlobal)␊
);␊
␊
})();␊
// webpack/runtime/rspack_unique_id␊
(() => {␊
__webpack_require__.ruid = "bundler=rspack@1.3.3";␊
␊
})();␊
/************************************************************************/␊
})()␊
;␊
</script>␊
<script type='text/javascript' src='/assets/bundle.00652b435e8ba424.js' async></script>␊
</body>␊
</html>␊
`
> /test/fixtures/pkg-with-lightningcss/dist/assets/bundle.00652b435e8ba424.js
`(self["webpackChunkpkg_with_lightningcss"] = self["webpackChunkpkg_with_lightningcss"] || []).push([["71"], {␊
66: (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {␊
"use strict";␊
__webpack_require__.r(__webpack_exports__);␊
// extracted by css-extract-rspack-plugin␊
␊
␊
}),␊
909: (function (module, __unused_webpack_exports, __webpack_require__) {␊
/* module decorator */ module = __webpack_require__.nmd(module);␊
__webpack_require__(66);␊
function main() {␊
document.querySelector('#root').innerHTML = \`␊
<h1>Testing lightningcss compilation output</h1>␊
\`;␊
}␊
main();␊
module.hot.accept();␊
␊
␊
}),␊
␊
},function(__webpack_require__) {␊
var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId) }␊
var __webpack_exports__ = (__webpack_exec__(909));␊
␊
}␊
]);`
> /test/fixtures/pkg-with-lightningcss/dist/assets/bundle.370a2434.css
`.foo, .bar {␊
flex: 1;␊
}␊
␊
.foz, .baz {␊
flex: 1 1 0;␊
}␊
␊
@custom-media --wide-window (min-width: 30em);␊
␊
.logo {␊
-webkit-backdrop-filter: blur(10px);␊
backdrop-filter: blur(10px);␊
}␊
␊
.button {␊
transition: background .2s;␊
}␊
␊
`
> /test/fixtures/pkg-with-lightningcss/dist/assets/runtime~bundle.963f4a85891b7f43.js
`(() => { // webpackBootstrap␊
"use strict";␊
var __webpack_modules__ = ({});␊
/************************************************************************/␊
// The module cache␊
var __webpack_module_cache__ = {};␊
␊
// The require function␊
function __webpack_require__(moduleId) {␊
␊
// Check if module is in cache␊
var cachedModule = __webpack_module_cache__[moduleId];␊
if (cachedModule !== undefined) {␊
return cachedModule.exports;␊
}␊
// Create a new module (and put it into the cache)␊
var module = (__webpack_module_cache__[moduleId] = {␊
id: moduleId,␊
loaded: false,␊
exports: {}␊
});␊
// Execute the module function␊
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);␊
␊
// Flag the module as loaded␊
module.loaded = true;␊
// Return the exports of the module␊
return module.exports;␊
␊
}␊
␊
// expose the modules object (__webpack_modules__)␊
__webpack_require__.m = __webpack_modules__;␊
␊
/************************************************************************/␊
// webpack/runtime/has_own_property␊
(() => {␊
__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))␊
})();␊
// webpack/runtime/make_namespace_object␊
(() => {␊
// define __esModule on exports␊
__webpack_require__.r = (exports) => {␊
if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {␊
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });␊
}␊
Object.defineProperty(exports, '__esModule', { value: true });␊
};␊
})();␊
// webpack/runtime/node_module_decorator␊
(() => {␊
__webpack_require__.nmd = (module) => {␊
module.paths = [];␊
if (!module.children) module.children = [];␊
return module;␊
};␊
})();␊
// webpack/runtime/on_chunk_loaded␊
(() => {␊
var deferred = [];␊
__webpack_require__.O = (result, chunkIds, fn, priority) => {␊
if (chunkIds) {␊
priority = priority || 0;␊
for (var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--)␊
deferred[i] = deferred[i - 1];␊
deferred[i] = [chunkIds, fn, priority];␊
return;␊
}␊
var notFulfilled = Infinity;␊
for (var i = 0; i < deferred.length; i++) {␊
var [chunkIds, fn, priority] = deferred[i];␊
var fulfilled = true;␊
for (var j = 0; j < chunkIds.length; j++) {␊
if (␊
(priority & (1 === 0) || notFulfilled >= priority) &&␊
Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))␊
) {␊
chunkIds.splice(j--, 1);␊
} else {␊
fulfilled = false;␊
if (priority < notFulfilled) notFulfilled = priority;␊
}␊
}␊
if (fulfilled) {␊
deferred.splice(i--, 1);␊
var r = fn();␊
if (r !== undefined) result = r;␊
}␊
}␊
return result;␊
};␊
␊
})();␊
// webpack/runtime/rspack_version␊
(() => {␊
__webpack_require__.rv = () => ("1.3.3")␊
})();␊
// webpack/runtime/jsonp_chunk_loading␊
(() => {␊
␊
// object to store loaded and loading chunks␊
// undefined = chunk not loaded, null = chunk preloaded/prefetched␊
// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded␊
var installedChunks = {"691": 0,};␊
__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);␊
// install a JSONP callback for chunk loading␊
var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {␊
var [chunkIds, moreModules, runtime] = data;␊
// add "moreModules" to the modules object,␊
// then flag all "chunkIds" as loaded and fire callback␊
var moduleId, chunkId, i = 0;␊
if (chunkIds.some((id) => (installedChunks[id] !== 0))) {␊
for (moduleId in moreModules) {␊
if (__webpack_require__.o(moreModules, moduleId)) {␊
__webpack_require__.m[moduleId] = moreModules[moduleId];␊
}␊
}␊
if (runtime) var result = runtime(__webpack_require__);␊
}␊
if (parentChunkLoadingFunction) parentChunkLoadingFunction(data);␊
for (; i < chunkIds.length; i++) {␊
chunkId = chunkIds[i];␊
if (␊
__webpack_require__.o(installedChunks, chunkId) &&␊
installedChunks[chunkId]␊
) {␊
installedChunks[chunkId][0]();␊
}␊
installedChunks[chunkId] = 0;␊
}␊
return __webpack_require__.O(result);␊
};␊
␊
var chunkLoadingGlobal = self["webpackChunkpkg_with_lightningcss"] = self["webpackChunkpkg_with_lightningcss"] || [];␊
chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));␊
chunkLoadingGlobal.push = webpackJsonpCallback.bind(␊
null,␊
chunkLoadingGlobal.push.bind(chunkLoadingGlobal)␊
);␊
␊
})();␊
// webpack/runtime/rspack_unique_id␊
(() => {␊
__webpack_require__.ruid = "bundler=rspack@1.3.3";␊
␊
})();␊
/************************************************************************/␊
})()␊
;`
## build with scss
> jetpack output for compiling pkg-with-scss
`␊
␊
␊
Asset Modules Size␊
bundle.423fc4a1.css - 109 bytes␊
bundle.7bb70e9016515a48.js 3 234 bytes␊
runtime~bundle.fe4bd758d23be68f.js - 1.11 KiB␊
jetpack › Building for production...␊
jetpack › Building modern bundle`
> /test/fixtures/pkg-with-scss/dist/index.html
`<!DOCTYPE html>␊
<html>␊
<head>␊
<meta charset='utf-8' />␊
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' />␊
<title>pkg-with-scss</title>␊
<link rel="stylesheet" href='/assets/bundle.423fc4a1.css' />␊
␊
</head>␊
<body>␊
<div id='root'></div>␊
<script type='text/javascript'>␊
(()=>{"use strict";var r={},e={};function t(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={exports:{}};return r[o](i,i.exports,t),i.exports}t.m=r,t.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),t.r=r=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},(()=>{var r=[];t.O=(e,o,n,i)=>{if(o){i=i||0;for(var s=r.length;s>0&&r[s-1][2]>i;s--)r[s]=r[s-1];r[s]=[o,n,i];return}for(var a=1/0,s=0;s<r.length;s++){for(var[o,n,i]=r[s],l=!0,u=0;u<o.length;u++)(!1&i||a>=i)&&Object.keys(t.O).every(r=>t.O[r](o[u]))?o.splice(u--,1):(l=!1,i<a&&(a=i));if(l){r.splice(s--,1);var p=n();void 0!==p&&(e=p)}}return e}})(),t.rv=()=>"1.3.3",(()=>{var r={691:0};t.O.j=e=>0===r[e];var e=(e,o)=>{var n,i,[s,a,l]=o,u=0;if(s.some(e=>0!==r[e])){for(n in a)t.o(a,n)&&(t.m[n]=a[n]);if(l)var p=l(t)}for(e&&e(o);u<s.length;u++)i=s[u],t.o(r,i)&&r[i]&&r[i][0](),r[i]=0;return t.O(p)},o=self.webpackChunkpkg_with_scss=self.webpackChunkpkg_with_scss||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})(),t.ruid="bundler=rspack@1.3.3"})();␊
</script>␊
<script type='text/javascript' src='/assets/bundle.7bb70e9016515a48.js' async></script>␊
</body>␊
</html>␊
`
> /test/fixtures/pkg-with-scss/dist/assets/bundle.423fc4a1.css
'body{background:#00f}button{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none}'
> /test/fixtures/pkg-with-scss/dist/assets/bundle.7bb70e9016515a48.js
'(self.webpackChunkpkg_with_scss=self.webpackChunkpkg_with_scss||[]).push([["71"],{143:function(s,e,n){"use strict";n.r(e)},909:function(s,e,n){n(143),document.querySelector("#root").innerHTML="hello world"}},function(s){s(s.s=909)}]);'
> /test/fixtures/pkg-with-scss/dist/assets/runtime~bundle.fe4bd758d23be68f.js
'(()=>{"use strict";var r={},e={};function t(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={exports:{}};return r[o](i,i.exports,t),i.exports}t.m=r,t.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),t.r=r=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},(()=>{var r=[];t.O=(e,o,n,i)=>{if(o){i=i||0;for(var s=r.length;s>0&&r[s-1][2]>i;s--)r[s]=r[s-1];r[s]=[o,n,i];return}for(var a=1/0,s=0;s<r.length;s++){for(var[o,n,i]=r[s],l=!0,u=0;u<o.length;u++)(!1&i||a>=i)&&Object.keys(t.O).every(r=>t.O[r](o[u]))?o.splice(u--,1):(l=!1,i<a&&(a=i));if(l){r.splice(s--,1);var p=n();void 0!==p&&(e=p)}}return e}})(),t.rv=()=>"1.3.3",(()=>{var r={691:0};t.O.j=e=>0===r[e];var e=(e,o)=>{var n,i,[s,a,l]=o,u=0;if(s.some(e=>0!==r[e])){for(n in a)t.o(a,n)&&(t.m[n]=a[n]);if(l)var p=l(t)}for(e&&e(o);u<s.length;u++)i=s[u],t.o(r,i)&&r[i]&&r[i][0](),r[i]=0;return t.O(p)},o=self.webpackChunkpkg_with_scss=self.webpackChunkpkg_with_scss||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})(),t.ruid="bundler=rspack@1.3.3"})();'
## build with cjs modules for modern js
> jetpack output for compiling pkg-with-cjs
`␊
␊
␊
Asset Modules Size␊
bundle.7aa8fd5fd68f7d50.js 3 1.28 KiB␊
jetpack › Building for production...␊
jetpack › Building modern bundle`
> /test/fixtures/pkg-with-cjs/dist/index.html
`<!DOCTYPE html>␊
<html>␊
<head>␊
<meta charset='utf-8' />␊
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' />␊
<title>jetpack</title>␊
␊
</head>␊
<body>␊
<div id='root'></div>␊
<script type='text/javascript' src='/assets/bundle.7aa8fd5fd68f7d50.js' async></script>␊
</body>␊
</html>␊
`
> /test/fixtures/pkg-with-cjs/dist/assets/bundle.7aa8fd5fd68f7d50.js
`(() => { // webpackBootstrap␊
var __webpack_modules__ = ({␊
211: (function (module) {␊
module.exports = ()=>{␊
return 'test '.trim();␊
};␊
␊
␊
}),␊
␊
});␊
/************************************************************************/␊
// The module cache␊
var __webpack_module_cache__ = {};␊
␊
// The require function␊
function __webpack_require__(moduleId) {␊
␊
// Check if module is in cache␊
var cachedModule = __webpack_module_cache__[moduleId];␊
if (cachedModule !== undefined) {␊
return cachedModule.exports;␊
}␊
// Create a new module (and put it into the cache)␊
var module = (__webpack_module_cache__[moduleId] = {␊
exports: {}␊
});␊
// Execute the module function␊
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);␊
␊
// Return the exports of the module␊
return module.exports;␊
␊
}␊
␊
/************************************************************************/␊
// webpack/runtime/rspack_version␊
(() => {␊
__webpack_require__.rv = () => ("1.3.3")␊
})();␊
// webpack/runtime/rspack_unique_id␊
(() => {␊
__webpack_require__.ruid = "bundler=rspack@1.3.3";␊
␊
})();␊
/************************************************************************/␊
// startup␊
// Load entry module and return exports␊
// This entry module is referenced by other modules so it can't be inlined␊
var __webpack_exports__ = __webpack_require__(211);␊
})()␊
;`
## build with esm modules for modern js
> jetpack output for compiling pkg-with-esm
`␊
␊
␊
Asset Modules Size␊
bundle.18a574f069190440.js 3 1.09 KiB␊
jetpack › Building for production...␊
jetpack › Building modern bundle`
> /test/fixtures/pkg-with-esm/dist/index.html
`<!DOCTYPE html>␊
<html>␊
<head>␊
<meta charset='utf-8' />␊
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' />␊
<title>jetpack</title>␊
␊
</head>␊
<body>␊
<div id='root'></div>␊
<script type='text/javascript' src='/assets/bundle.18a574f069190440.js' async></script>␊
</body>␊
</html>␊
`
> /test/fixtures/pkg-with-esm/dist/assets/bundle.18a574f069190440.js
`(() => { // webpackBootstrap␊
"use strict";␊
var __webpack_modules__ = ({});␊
/************************************************************************/␊
// The module cache␊
var __webpack_module_cache__ = {};␊
␊
// The require function␊
function __webpack_require__(moduleId) {␊
␊
// Check if module is in cache␊
var cachedModule = __webpack_module_cache__[moduleId];␊
if (cachedModule !== undefined) {␊
return cachedModule.exports;␊
}␊
// Create a new module (and put it into the cache)␊
var module = (__webpack_module_cache__[moduleId] = {␊
exports: {}␊
});␊
// Execute the module function␊
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);␊
␊
// Return the exports of the module␊
return module.exports;␊
␊
}␊
␊
/************************************************************************/␊
// webpack/runtime/rspack_version␊
(() => {␊
__webpack_require__.rv = () => ("1.3.3")␊
})();␊
// webpack/runtime/rspack_unique_id␊
(() => {␊
__webpack_require__.ruid = "bundler=rspack@1.3.3";␊
␊
})();␊
/************************************************************************/␊
const test = ()=>{␊
return 'test '.trim();␊
};␊
␊
})()␊
;`
## build both modern and legacy bundles
> jetpack output for compiling pkg-with-legacy
`␊
␊
␊
␊
␊
␊
Asset Modules Size␊
Asset Modules Size␊
bundle.0a417e9711a6b964.legacy.js 86 51.5 KiB␊
bundle.f6bfb4bbd0c47603.js 79 46.6 KiB␊
jetpack › Building for production...␊
jetpack › Building legacy bundle␊
jetpack › Building modern bundle`
> /test/fixtures/pkg-with-legacy/dist/index.html
`<!DOCTYPE html>␊
<html>␊
<head>␊
<meta charset='utf-8' />␊
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' />␊
<title>jetpack</title>␊
␊
</head>␊
<body>␊
<div id='root'></div>␊
<script type='text/javascript' src='/assets/bundle.f6bfb4bbd0c47603.js' async></script>␊
</body>␊
</html>␊
`
> /test/fixtures/pkg-with-legacy/dist/index.legacy.html
`<!DOCTYPE html>␊
<html>␊
<head>␊
<meta charset='utf-8' />␊
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' />␊
<title>jetpack</title>␊
␊
</head>␊
<body>␊
<div id='root'></div>␊
<script type='text/javascript' src='/assets/bundle.0a417e9711a6b964.legacy.js' async></script>␊
</body>␊
</html>␊
`
> /test/fixtures/pkg-with-legacy/dist/assets/bundle.0a417e9711a6b964.legacy.js
`(() => { // webpackBootstrap␊
"use strict";␊
var __webpack_modules__ = ({␊
4851: (function (module, __unused_webpack_exports, __webpack_require__) {␊
␊
var isCallable = __webpack_require__(9777);␊
var tryToString = __webpack_require__(8555);␊
␊
var $TypeError = TypeError;␊
␊
// \`Assert: IsCallable(argument) is true\`␊
module.exports = function (argument) {␊
if (isCallable(argument)) return argument;␊
throw new $TypeError(tryToString(argument) + ' is not a function');␊
};␊
␊
␊
}),␊
5311: (function (module, __unused_webpack_exports, __webpack_require__) {␊
␊
var wellKnownSymbol = __webpack_require__(8479);␊
var create = __webpack_require__(1281);␊
var defineProperty = (__webpack_require__(7126)/* .f */.f);␊
␊
var UNSCOPABLES = wellKnownSymbol('unscopables');␊
var ArrayPrototype = Array.prototype;␊
␊
// Array.prototype[@@unscopables]␊
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables␊
if (ArrayPrototype[UNSCOPABLES] === undefined) {␊
defineProperty(ArrayPrototype, UNSCOPABLES, {␊
configurable: true,␊
value: create(null)␊
});␊
}␊
␊
// add a key to Array.prototype[@@unscopables]␊
module.exports = function (key) {␊
ArrayPrototype[UNSCOPABLES][key] = true;␊
};␊
␊
␊
}),␊
4262: (function (module, __unused_webpack_exports, __webpack_require__) {␊
␊
var isObject = __webpack_require__(8865);␊
␊
var $String = String;␊
var $TypeError = TypeError;␊
␊
// \`Assert: Type(argument) is Object\`␊
module.exports = function (argument) {␊
if (isObject(argument)) return argument;␊
throw new $TypeError($String(argument) + ' is not an object');␊
};␊
␊
␊
}),␊
1737: (function (module, __unused_webpack_exports, __webpack_require__) {␊
␊
var toIndexedObject = __webpack_require__(7737);␊
var toAbsoluteIndex = __webpack_require__(6566);␊
var lengthOfArrayLike = __webpack_require__(3904);␊
␊
// \`Array.prototype.{ indexOf, includes }\` methods implementation␊
var createMethod = function (IS_INCLUDES) {␊
return function ($this, el, fromIndex) {␊
var O = toIndexedObject($this);␊
var length = lengthOfArrayLike(O);␊
if (length === 0) return !IS_INCLUDES && -1;␊
var index = toAbsoluteIndex(fromIndex, length);␊
var value;␊
// Array#includes uses SameValueZero equality algorithm␊
// eslint-disable-next-line no-self-compare -- NaN check␊
if (IS_INCLUDES && el !== el) while (length > index) {␊
value = O[index++];␊
// eslint-disable-next-line no-self-compare -- NaN check␊
if (value !== value) return true;␊
// Array#indexOf ignores holes, Array#includes - not␊
} else for (;length > index; index++) {␊
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;␊
} return !IS_INCLUDES && -1;␊
};␊
};␊
␊
module.exports = {␊
// \`Array.prototype.includes\` method␊
// https://tc39.es/ecma262/#sec-array.prototype.includes␊
includes: createMethod(true),␊
// \`Array.prototype.indexOf\` method␊
// https://tc39.es/ecma262/#sec-array.prototype.indexof␊
indexOf: createMethod(false)␊
};␊
␊
␊
}),␊
3426: (function (module, __unused_webpack_exports, __webpack_require__) {␊
␊
var lengthOfArrayLike = __webpack_require__(3904);␊
␊
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toReversed␊
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toReversed␊
module.exports = function (O, C) {␊
var len = lengthOfArrayLike(O);␊
var A = new C(len);␊
var k = 0;␊
for (; k < len; k++) A[k] = O[len - k - 1];␊
return A;␊
};␊
␊
␊
}),␊
2221: (function (module, __unused_webpack_exports, __webpack_require__) {␊
␊
var uncurryThis = __webpack_require__(9840);␊
␊
var toString = uncurryThis({}.toString);␊
var stringSlice = uncurryThis(''.slice);␊
␊
module.exports = function (it) {␊
return stringSlice(toString(it), 8, -1);␊
};␊
␊
␊
}),␊
5227: (function (module, __unused_webpack_exports, __webpack_require__) {␊
␊
var TO_STRING_TAG_SUPPORT = __webpack_require__(6771);␊
var isCallable = __webpack_require__(9777);␊
var classofRaw = __webpack_require__(2221);␊
var wellKnownSymbol = __webpack_require__(8479);␊
␊
var TO_STRING_TAG = wellKnownSymbol('toStringTag');␊
var $Object = Object;␊
␊
// ES3 wrong here␊
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';␊
␊
// fallback for IE11 Script Access Denied error␊
var tryGet = function (it, key) {␊
try {␊
return it[key];␊
} catch (error) { /* empty */ }␊
};␊
␊
// getting tag from ES6+ \`Object.prototype.toString\`␊
module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {␊
var O, tag, result;␊
return it === undefined ? 'Undefined' : it === null ? 'Null'␊
// @@toStringTag case␊
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag␊
// builtinTag case␊
: CORRECT_ARGUMENTS ? classofRaw(O)␊
// ES3 arguments fallback␊
: (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;␊
};␊
␊
␊
}),␊
9451: (function (module, __unused_webpack_exports, __webpack_require__) {␊
␊
var hasOwn = __webpack_require__(6184);␊
var ownKeys = __webpack_require__(2703);␊
var getOwnPropertyDescriptorModule = __webpack_require__(1136);␊
var definePropertyModule = __webpack_require__(7126);␊
␊
module.exports = function (target, source, exceptions) {␊
var keys = ownKeys(source);␊
var defineProperty = definePropertyModule.f;␊
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;␊
for (var i = 0; i < keys.length; i++) {␊
var key = keys[i];␊
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {␊
defineProperty(target, key, getOwnPropertyDescriptor(source, key));␊
}␊
}␊
};␊
␊
␊
}),␊
1544: (function (module, __unused_webpack_exports, __webpack_require__) {␊
␊
var DESCRIPTORS = __webpack_require__(3820);␊
var definePropertyModule = __webpack_require__(7126);␊
var createPropertyDescriptor = __webpack_require__(3489);␊
␊
module.exports = DESCRIPTORS ? function (object, key, value) {␊
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));␊
} : function (object, key, value) {␊
object[key] = value;␊
return object;␊
};␊
␊
␊
}),␊
3489: (function (module) {␊
␊
module.exports = function (bitmap, value) {␊
return {␊
enumerable: !(bitmap & 1),␊
configurable: !(bitmap & 2),␊
writable: !(bitmap & 4),␊
value: value␊
};␊
};␊
␊
␊
}),␊
7802: (function (module, __unused_webpack_exports, __webpack_require__) {␊
␊
var isCallable = __webpack_require__(9777);␊
var definePropertyModule = __webpack_require__(7126);␊
var makeBuiltIn = __webpack_require__(1304);␊
var defineGlobalProperty = __webpack_require__(5247);␊
␊
module.exports = function (O, key, value, options) {␊
if (!options) options = {};␊
var simple = options.enumerable;␊
var name = options.name !== undefined ? options.name : key;␊
if (isCallable(value)) makeBuiltIn(value, name, options);␊
if (options.global) {␊
if (simple) O[key] = value;␊
else defineGlobalProperty(key, value);␊
} else {␊
try {␊
if (!options.unsafe) delete O[key];␊
else if (O[key]) simple = true;␊
} catch (error) { /* empty */ }␊
if (simple) O[key] = value;␊
else definePropertyModule.f(O, key, {␊
value: value,␊
enumerable: false,␊
configurable: !options.nonConfigurable,␊
writable: !options.nonWritable␊
});␊
} return O;␊
};␊
␊
␊
}),␊
5247: (function (module, __unused_webpack_exports, __webpack_require__) {␊
␊
var globalThis = __webpack_require__(9532);␊
␊
// eslint-disable-next-line es/no-object-defineproperty -- safe␊
var defineProperty = Object.defineProperty;␊
␊
module.exports = function (key, value) {␊
try {␊
defineProperty(globalThis, key, { value: value, configurable: true, writable: true });␊
} catch (error) {␊
globalThis[key] = value;␊
} return value;␊
};␊
␊
␊
}),␊
3820: (function (module, __unused_webpack_exports, __webpack_require__) {␊
␊
var fails = __webpack_require__(9356);␊
␊
// Detect IE8's incomplete defineProperty implementation␊
module.exports = !fails(function () {␊
// eslint-disable-next-line es/no-object-defineproperty -- required for testing␊
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;␊
});␊
␊
␊
}),␊
7998: (function (module, __unused_webpack_exports, __webpack_require__) {␊
␊
var globalThis = __webpack_require__(9532);␊
var isObject = __webpack_require__(8865);␊
␊
var document = globalThis.document;␊
// typeof document.createElement is 'object' in old IE␊
var EXISTS = isObject(document) && isObject(document.createElement);␊
␊
module.exports = function (it) {␊
return EXISTS ? document.createElement(it) : {};␊
};␊
␊
␊
}),␊
3249: (function (module) {␊
␊
// IE8- don't enum bug keys␊
module.exports = [␊
'constructor',␊
'hasOwnProperty',␊
'isPrototypeOf',␊
'propertyIsEnumerable',␊
'toLocaleString',␊
'toString',␊
'valueOf'␊
];␊
␊
␊
}),␊
9180: (function (module, __unused_webpack_exports, __webpack_require__) {␊
␊
var globalThis = __webpack_require__(9532);␊
␊
var navigator = globalThis.navigator;␊
var userAgent = navigator && navigator.userAgent;␊
␊
module.exports = userAgent ? String(userAgent) : '';␊
␊
␊
}),␊
5898: (function (module, __unused_webpack_exports, __webpack_require__) {␊
␊
var globalThis = __w