jetpack
Version:
Jetpack wraps webpack and nodemon to give you the best development workflow.
1,414 lines (1,343 loc) • 101 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.b3e6bb21.css - 21 bytes␊
bundle.c8b163674e140252.js 3 228 bytes␊
runtime~bundle.07a56d798418ab9e.js - 1.23 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 n(t){var o=e[t];if(void 0!==o)return o.exports;var u=e[t]={exports:{}};return r[t](u,u.exports,n),u.exports}n.m=r,n.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},n.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},(()=>{var r=[];n.O=function(e,t,o,u){if(t){u=u||0;for(var i=r.length;i>0&&r[i-1][2]>u;i--)r[i]=r[i-1];r[i]=[t,o,u];return}for(var f=1/0,i=0;i<r.length;i++){for(var t=r[i][0],o=r[i][1],u=r[i][2],a=!0,c=0;c<t.length;c++)(!1&u||f>=u)&&Object.keys(n.O).every(function(r){return n.O[r](t[c])})?t.splice(c--,1):(a=!1,u<f&&(f=u));if(a){r.splice(i--,1);var l=o();void 0!==l&&(e=l)}}return e}})(),n.rv=function(){return"1.2.2"},(()=>{var r={691:0};n.O.j=function(e){return 0===r[e]};var e=function(e,t){var o,u,i=t[0],f=t[1],a=t[2],c=0;if(i.some(function(e){return 0!==r[e]})){for(o in f)n.o(f,o)&&(n.m[o]=f[o]);if(a)var l=a(n)}for(e&&e(t);c<i.length;c++)u=i[c],n.o(r,u)&&r[u]&&r[u][0](),r[u]=0;return n.O(l)},t=self.webpackChunkpkg_basic=self.webpackChunkpkg_basic||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))})(),n.ruid="bundler=rspack@1.2.2"})();␊
</script>␊
<script type='text/javascript' src='/assets/bundle.c8b163674e140252.js' async></script>␊
</body>␊
</html>␊
`
> /test/fixtures/pkg-basic/dist/assets/bundle.b3e6bb21.css
'body{background:#00f}'
> /test/fixtures/pkg-basic/dist/assets/bundle.c8b163674e140252.js
'(self.webpackChunkpkg_basic=self.webpackChunkpkg_basic||[]).push([["71"],{938:function(e,n,c){"use strict";c.r(n)},311:function(e,n,c){c(938),document.querySelector("#root").innerHTML="hello world"}},function(e){e(e.s="311")}]);'
> /test/fixtures/pkg-basic/dist/assets/runtime~bundle.07a56d798418ab9e.js
'(()=>{"use strict";var r={},e={};function n(t){var o=e[t];if(void 0!==o)return o.exports;var u=e[t]={exports:{}};return r[t](u,u.exports,n),u.exports}n.m=r,n.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},n.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},(()=>{var r=[];n.O=function(e,t,o,u){if(t){u=u||0;for(var i=r.length;i>0&&r[i-1][2]>u;i--)r[i]=r[i-1];r[i]=[t,o,u];return}for(var f=1/0,i=0;i<r.length;i++){for(var t=r[i][0],o=r[i][1],u=r[i][2],a=!0,c=0;c<t.length;c++)(!1&u||f>=u)&&Object.keys(n.O).every(function(r){return n.O[r](t[c])})?t.splice(c--,1):(a=!1,u<f&&(f=u));if(a){r.splice(i--,1);var l=o();void 0!==l&&(e=l)}}return e}})(),n.rv=function(){return"1.2.2"},(()=>{var r={691:0};n.O.j=function(e){return 0===r[e]};var e=function(e,t){var o,u,i=t[0],f=t[1],a=t[2],c=0;if(i.some(function(e){return 0!==r[e]})){for(o in f)n.o(f,o)&&(n.m[o]=f[o]);if(a)var l=a(n)}for(e&&e(t);c<i.length;c++)u=i[c],n.o(r,u)&&r[u]&&r[u][0](),r[u]=0;return n.O(l)},t=self.webpackChunkpkg_basic=self.webpackChunkpkg_basic||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))})(),n.ruid="bundler=rspack@1.2.2"})();'
## 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.0f669924f9de7522.js 4 1.26 KiB␊
bundle.8dd76783.css - 353 bytes␊
runtime~bundle.d8b71dc7e057f65f.js - 3.92 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 = function (obj, prop) {␊
return Object.prototype.hasOwnProperty.call(obj, prop);␊
};␊
␊
})();␊
// webpack/runtime/on_chunk_loaded␊
(() => {␊
var deferred = [];␊
__webpack_require__.O = function (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 = deferred[i][0],␊
fn = deferred[i][1],␊
priority = deferred[i][2];␊
var fulfilled = true;␊
for (var j = 0; j < chunkIds.length; j++) {␊
if (␊
(priority & (1 === 0) || notFulfilled >= priority) &&␊
Object.keys(__webpack_require__.O).every(function (key) {␊
return __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 = function () {␊
return "1.2.2";␊
};␊
␊
})();␊
// 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 = function (chunkId) {␊
return installedChunks[chunkId] === 0;␊
};␊
// install a JSONP callback for chunk loading␊
var webpackJsonpCallback = function (parentChunkLoadingFunction, data) {␊
var chunkIds = data[0];␊
var moreModules = data[1];␊
var runtime = data[2];␊
// add "moreModules" to the modules object,␊
// then flag all "chunkIds" as loaded and fire callback␊
var moduleId,␊
chunkId,␊
i = 0;␊
if (chunkIds.some(function (id) { return 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.2.2";␊
␊
})();␊
/************************************************************************/␊
})()␊
;␊
</script>␊
<script type='text/javascript' src='/assets/bundle.0f669924f9de7522.js' async></script>␊
</body>␊
</html>␊
`
> /test/fixtures/pkg-with-everything/dist/assets/bundle.0f669924f9de7522.js
`(self['webpackChunkpkg_with_everything'] = self['webpackChunkpkg_with_everything'] || []).push([["71"], {␊
310: (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);␊
␊
␊
}),␊
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;␊
␊
␊
}),␊
␊
},function(__webpack_require__) {␊
var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId) }␊
var __webpack_exports__ = (__webpack_exec__("310"));␊
␊
}␊
]);`
> /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/runtime~bundle.d8b71dc7e057f65f.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 = function (obj, prop) {␊
return Object.prototype.hasOwnProperty.call(obj, prop);␊
};␊
␊
})();␊
// webpack/runtime/on_chunk_loaded␊
(() => {␊
var deferred = [];␊
__webpack_require__.O = function (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 = deferred[i][0],␊
fn = deferred[i][1],␊
priority = deferred[i][2];␊
var fulfilled = true;␊
for (var j = 0; j < chunkIds.length; j++) {␊
if (␊
(priority & (1 === 0) || notFulfilled >= priority) &&␊
Object.keys(__webpack_require__.O).every(function (key) {␊
return __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 = function () {␊
return "1.2.2";␊
};␊
␊
})();␊
// 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 = function (chunkId) {␊
return installedChunks[chunkId] === 0;␊
};␊
// install a JSONP callback for chunk loading␊
var webpackJsonpCallback = function (parentChunkLoadingFunction, data) {␊
var chunkIds = data[0];␊
var moreModules = data[1];␊
var runtime = data[2];␊
// add "moreModules" to the modules object,␊
// then flag all "chunkIds" as loaded and fire callback␊
var moduleId,␊
chunkId,␊
i = 0;␊
if (chunkIds.some(function (id) { return 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.2.2";␊
␊
})();␊
/************************************************************************/␊
})()␊
;`
## build with lightningcss syntax lowering
> jetpack output for compiling pkg-with-lightningcss
`␊
␊
␊
Asset Modules Size␊
bundle.0e380c5700fcc496.js 3 829 bytes␊
bundle.370a2434.css - 230 bytes␊
runtime~bundle.5371e52e21ed3a1d.js - 4.52 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 = function (obj, prop) {␊
return Object.prototype.hasOwnProperty.call(obj, prop);␊
};␊
␊
})();␊
// webpack/runtime/make_namespace_object␊
(() => {␊
// define __esModule on exports␊
__webpack_require__.r = function(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 = function (module) {␊
module.paths = [];␊
if (!module.children) module.children = [];␊
return module;␊
};␊
})();␊
// webpack/runtime/on_chunk_loaded␊
(() => {␊
var deferred = [];␊
__webpack_require__.O = function (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 = deferred[i][0],␊
fn = deferred[i][1],␊
priority = deferred[i][2];␊
var fulfilled = true;␊
for (var j = 0; j < chunkIds.length; j++) {␊
if (␊
(priority & (1 === 0) || notFulfilled >= priority) &&␊
Object.keys(__webpack_require__.O).every(function (key) {␊
return __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 = function () {␊
return "1.2.2";␊
};␊
␊
})();␊
// 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 = function (chunkId) {␊
return installedChunks[chunkId] === 0;␊
};␊
// install a JSONP callback for chunk loading␊
var webpackJsonpCallback = function (parentChunkLoadingFunction, data) {␊
var chunkIds = data[0];␊
var moreModules = data[1];␊
var runtime = data[2];␊
// add "moreModules" to the modules object,␊
// then flag all "chunkIds" as loaded and fire callback␊
var moduleId,␊
chunkId,␊
i = 0;␊
if (chunkIds.some(function (id) { return 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.2.2";␊
␊
})();␊
/************************************************************************/␊
})()␊
;␊
</script>␊
<script type='text/javascript' src='/assets/bundle.0e380c5700fcc496.js' async></script>␊
</body>␊
</html>␊
`
> /test/fixtures/pkg-with-lightningcss/dist/assets/bundle.0e380c5700fcc496.js
`(self['webpackChunkpkg_with_lightningcss'] = self['webpackChunkpkg_with_lightningcss'] || []).push([["71"], {␊
938: (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {␊
"use strict";␊
__webpack_require__.r(__webpack_exports__);␊
// extracted by css-extract-rspack-plugin␊
␊
␊
}),␊
311: (function (module, __unused_webpack_exports, __webpack_require__) {␊
/* module decorator */ module = __webpack_require__.nmd(module);␊
__webpack_require__(938);␊
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__("311"));␊
␊
}␊
]);`
> /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.5371e52e21ed3a1d.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 = function (obj, prop) {␊
return Object.prototype.hasOwnProperty.call(obj, prop);␊
};␊
␊
})();␊
// webpack/runtime/make_namespace_object␊
(() => {␊
// define __esModule on exports␊
__webpack_require__.r = function(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 = function (module) {␊
module.paths = [];␊
if (!module.children) module.children = [];␊
return module;␊
};␊
})();␊
// webpack/runtime/on_chunk_loaded␊
(() => {␊
var deferred = [];␊
__webpack_require__.O = function (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 = deferred[i][0],␊
fn = deferred[i][1],␊
priority = deferred[i][2];␊
var fulfilled = true;␊
for (var j = 0; j < chunkIds.length; j++) {␊
if (␊
(priority & (1 === 0) || notFulfilled >= priority) &&␊
Object.keys(__webpack_require__.O).every(function (key) {␊
return __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 = function () {␊
return "1.2.2";␊
};␊
␊
})();␊
// 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 = function (chunkId) {␊
return installedChunks[chunkId] === 0;␊
};␊
// install a JSONP callback for chunk loading␊
var webpackJsonpCallback = function (parentChunkLoadingFunction, data) {␊
var chunkIds = data[0];␊
var moreModules = data[1];␊
var runtime = data[2];␊
// add "moreModules" to the modules object,␊
// then flag all "chunkIds" as loaded and fire callback␊
var moduleId,␊
chunkId,␊
i = 0;␊
if (chunkIds.some(function (id) { return 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.2.2";␊
␊
})();␊
/************************************************************************/␊
})()␊
;`
## build with scss
> jetpack output for compiling pkg-with-scss
`␊
␊
␊
Asset Modules Size␊
bundle.423fc4a1.css - 109 bytes␊
bundle.aadf5319c48730fc.js 3 236 bytes␊
runtime~bundle.41c1cfac577df570.js - 1.24 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 n(t){var o=e[t];if(void 0!==o)return o.exports;var u=e[t]={exports:{}};return r[t](u,u.exports,n),u.exports}n.m=r,n.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},n.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},(()=>{var r=[];n.O=function(e,t,o,u){if(t){u=u||0;for(var i=r.length;i>0&&r[i-1][2]>u;i--)r[i]=r[i-1];r[i]=[t,o,u];return}for(var f=1/0,i=0;i<r.length;i++){for(var t=r[i][0],o=r[i][1],u=r[i][2],c=!0,s=0;s<t.length;s++)(!1&u||f>=u)&&Object.keys(n.O).every(function(r){return n.O[r](t[s])})?t.splice(s--,1):(c=!1,u<f&&(f=u));if(c){r.splice(i--,1);var a=o();void 0!==a&&(e=a)}}return e}})(),n.rv=function(){return"1.2.2"},(()=>{var r={691:0};n.O.j=function(e){return 0===r[e]};var e=function(e,t){var o,u,i=t[0],f=t[1],c=t[2],s=0;if(i.some(function(e){return 0!==r[e]})){for(o in f)n.o(f,o)&&(n.m[o]=f[o]);if(c)var a=c(n)}for(e&&e(t);s<i.length;s++)u=i[s],n.o(r,u)&&r[u]&&r[u][0](),r[u]=0;return n.O(a)},t=self.webpackChunkpkg_with_scss=self.webpackChunkpkg_with_scss||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))})(),n.ruid="bundler=rspack@1.2.2"})();␊
</script>␊
<script type='text/javascript' src='/assets/bundle.aadf5319c48730fc.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.aadf5319c48730fc.js
'(self.webpackChunkpkg_with_scss=self.webpackChunkpkg_with_scss||[]).push([["71"],{717:function(s,e,n){"use strict";n.r(e)},311:function(s,e,n){n(717),document.querySelector("#root").innerHTML="hello world"}},function(s){s(s.s="311")}]);'
> /test/fixtures/pkg-with-scss/dist/assets/runtime~bundle.41c1cfac577df570.js
'(()=>{"use strict";var r={},e={};function n(t){var o=e[t];if(void 0!==o)return o.exports;var u=e[t]={exports:{}};return r[t](u,u.exports,n),u.exports}n.m=r,n.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},n.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},(()=>{var r=[];n.O=function(e,t,o,u){if(t){u=u||0;for(var i=r.length;i>0&&r[i-1][2]>u;i--)r[i]=r[i-1];r[i]=[t,o,u];return}for(var f=1/0,i=0;i<r.length;i++){for(var t=r[i][0],o=r[i][1],u=r[i][2],c=!0,s=0;s<t.length;s++)(!1&u||f>=u)&&Object.keys(n.O).every(function(r){return n.O[r](t[s])})?t.splice(s--,1):(c=!1,u<f&&(f=u));if(c){r.splice(i--,1);var a=o();void 0!==a&&(e=a)}}return e}})(),n.rv=function(){return"1.2.2"},(()=>{var r={691:0};n.O.j=function(e){return 0===r[e]};var e=function(e,t){var o,u,i=t[0],f=t[1],c=t[2],s=0;if(i.some(function(e){return 0!==r[e]})){for(o in f)n.o(f,o)&&(n.m[o]=f[o]);if(c)var a=c(n)}for(e&&e(t);s<i.length;s++)u=i[s],n.o(r,u)&&r[u]&&r[u][0](),r[u]=0;return n.O(a)},t=self.webpackChunkpkg_with_scss=self.webpackChunkpkg_with_scss||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))})(),n.ruid="bundler=rspack@1.2.2"})();'
## build with cjs modules for modern js
> jetpack output for compiling pkg-with-cjs
`␊
␊
␊
Asset Modules Size␊
bundle.713d03158b35a81c.js 3 1.3 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.713d03158b35a81c.js' async></script>␊
</body>␊
</html>␊
`
> /test/fixtures/pkg-with-cjs/dist/assets/bundle.713d03158b35a81c.js
`(() => { // webpackBootstrap␊
var __webpack_modules__ = ({␊
489: (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 = function () {␊
return "1.2.2";␊
};␊
␊
})();␊
// webpack/runtime/rspack_unique_id␊
(() => {␊
__webpack_require__.ruid = "bundler=rspack@1.2.2";␊
␊
})();␊
/************************************************************************/␊
// 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__(489);␊
})()␊
;`
## build with esm modules for modern js
> jetpack output for compiling pkg-with-esm
`␊
␊
␊
Asset Modules Size␊
bundle.7d5e8f34bad666e9.js 3 1.11 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.7d5e8f34bad666e9.js' async></script>␊
</body>␊
</html>␊
`
> /test/fixtures/pkg-with-esm/dist/assets/bundle.7d5e8f34bad666e9.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 = function () {␊
return "1.2.2";␊
};␊
␊
})();␊
// webpack/runtime/rspack_unique_id␊
(() => {␊
__webpack_require__.ruid = "bundler=rspack@1.2.2";␊
␊
})();␊
/************************************************************************/␊
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.1f9dc92bfd3a83dc.js 3 1.1 KiB␊
bundle.c168d271c6e62b84.legacy.js 79 44.7 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.1f9dc92bfd3a83dc.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.c168d271c6e62b84.legacy.js' async></script>␊
</body>␊
</html>␊
`
> /test/fixtures/pkg-with-legacy/dist/assets/bundle.1f9dc92bfd3a83dc.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 = function () {␊
return "1.2.2";␊
};␊
␊
})();␊
// webpack/runtime/rspack_unique_id␊
(() => {␊
__webpack_require__.ruid = "bundler=rspack@1.2.2";␊
␊
})();␊
/************************************************************************/␊
const test = async ()=>'test '.trim();␊
␊
})()␊
;`
> /test/fixtures/pkg-with-legacy/dist/assets/bundle.c168d271c6e62b84.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');␊
};␊
␊
␊
}),␊
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)␊
};␊
␊
␊
}),␊
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 (er