From a52c5a65d16a0147e6c73766b63ffbaefb91c29f Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Thu, 29 Feb 2024 21:45:11 -0800 Subject: [PATCH] fix: Improve assets handling and support vanilla extract styles. (#240) * Add fixture. * Work. * Add tests. * Update deps. * Fix css external. --- .moon/tasks.yml | 2 - ...lugin-commonjs-npm-22.0.2-6275b92096.patch | 12 - ...n-node-resolve-npm-13.3.0-a93dd11647.patch | 12 - package.json | 16 +- .../src/rollup/plugins/copyAndRefAssets.ts | 3 - .../tests/__snapshots__/assets.test.ts.snap | 173 ++++++++ packages/packemon/tests/assets.test.ts | 100 +++++ .../__snapshots__/assetImports.test.ts.snap | 208 +++++----- packages/packemon/tests/helpers.ts | 4 +- packemon.config.js | 3 - tests/__fixtures__/examples/asset-imports.ts | 2 +- tests/__fixtures__/examples/package.json | 1 + .../project-assets-vanilla/package.json | 15 + .../project-assets-vanilla/src/index.tsx | 3 + .../project-assets-vanilla/src/styles.css.ts | 5 + .../project-assets-vanilla/tsconfig.json | 6 + yarn.lock | 378 ++++++++++++------ 17 files changed, 673 insertions(+), 270 deletions(-) delete mode 100644 .yarn/patches/@rollup-plugin-commonjs-npm-22.0.2-6275b92096.patch delete mode 100644 .yarn/patches/@rollup-plugin-node-resolve-npm-13.3.0-a93dd11647.patch create mode 100644 packages/packemon/tests/__snapshots__/assets.test.ts.snap create mode 100644 packages/packemon/tests/assets.test.ts delete mode 100644 packemon.config.js create mode 100644 tests/__fixtures__/project-assets-vanilla/package.json create mode 100644 tests/__fixtures__/project-assets-vanilla/src/index.tsx create mode 100644 tests/__fixtures__/project-assets-vanilla/src/styles.css.ts create mode 100644 tests/__fixtures__/project-assets-vanilla/tsconfig.json diff --git a/.moon/tasks.yml b/.moon/tasks.yml index d686ff72d..787c5778b 100644 --- a/.moon/tasks.yml +++ b/.moon/tasks.yml @@ -23,8 +23,6 @@ tasks: test: command: 'vitest run --config ../../vitest.config.ts' - inputs: - - '/vitest.config.ts' deps: - '^:build' diff --git a/.yarn/patches/@rollup-plugin-commonjs-npm-22.0.2-6275b92096.patch b/.yarn/patches/@rollup-plugin-commonjs-npm-22.0.2-6275b92096.patch deleted file mode 100644 index bb04f7b4a..000000000 --- a/.yarn/patches/@rollup-plugin-commonjs-npm-22.0.2-6275b92096.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/package.json b/package.json -index 45d57348fea024a93a68342ec79cfef2a8bf5706..3107d70e956ac77bf1a95c3fd34b5e0b389c9786 100644 ---- a/package.json -+++ b/package.json -@@ -16,6 +16,7 @@ - "main": "./dist/cjs/index.js", - "module": "./dist/es/index.js", - "exports": { -+ "types": "./types/index.d.ts", - "require": "./dist/cjs/index.js", - "import": "./dist/es/index.js" - }, diff --git a/.yarn/patches/@rollup-plugin-node-resolve-npm-13.3.0-a93dd11647.patch b/.yarn/patches/@rollup-plugin-node-resolve-npm-13.3.0-a93dd11647.patch deleted file mode 100644 index 8aa74f07e..000000000 --- a/.yarn/patches/@rollup-plugin-node-resolve-npm-13.3.0-a93dd11647.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/package.json b/package.json -index c0f1a4dd64b314487df990e805b4d553c42b59ea..7fbde6f4f53acc96e88c973df4a5de06bb429ec6 100644 ---- a/package.json -+++ b/package.json -@@ -17,6 +17,7 @@ - "module": "./dist/es/index.js", - "type": "commonjs", - "exports": { -+ "types": "./types/index.d.ts", - "require": "./dist/cjs/index.js", - "import": "./dist/es/index.js" - }, diff --git a/package.json b/package.json index 72f171f5f..02a47a371 100644 --- a/package.json +++ b/package.json @@ -25,14 +25,16 @@ "@babel/core": "^7.24.0", "@moonrepo/cli": "^1.22.2", "@moonrepo/dev": "^2.0.1", - "@swc/cli": "^0.3.9", + "@swc/cli": "^0.3.10", "@types/micromatch": "^4.0.6", - "@types/node": "^16.18.85", - "@types/react": "^18.2.60", + "@types/node": "^16.18.86", + "@types/react": "^18.2.61", "@types/semver": "^7.5.8", + "@vanilla-extract/rollup-plugin": "^1.3.4", "babel-preset-moon": "^2.0.15", + "bootstrap": "^5.3.3", "chokidar": "^3.6.0", - "electron-to-chromium": "^1.4.687", + "electron-to-chromium": "^1.4.689", "eslint": "^8.57.0", "eslint-config-moon": "^2.1.2", "lerna": "^8.1.2", @@ -47,9 +49,5 @@ "type": "ko-fi", "url": "https://ko-fi.com/milesjohnson" }, - "packageManager": "yarn@4.1.0", - "resolutions": { - "@rollup/plugin-commonjs@^22.0.2": "patch:@rollup/plugin-commonjs@npm:22.0.2#.yarn/patches/@rollup-plugin-commonjs-npm-22.0.2-6275b92096.patch", - "@rollup/plugin-node-resolve@^13.3.0": "patch:@rollup/plugin-node-resolve@npm:13.3.0#.yarn/patches/@rollup-plugin-node-resolve-npm-13.3.0-a93dd11647.patch" - } + "packageManager": "yarn@4.1.0" } diff --git a/packages/packemon/src/rollup/plugins/copyAndRefAssets.ts b/packages/packemon/src/rollup/plugins/copyAndRefAssets.ts index 111a3899b..b4bc05ce2 100644 --- a/packages/packemon/src/rollup/plugins/copyAndRefAssets.ts +++ b/packages/packemon/src/rollup/plugins/copyAndRefAssets.ts @@ -102,9 +102,6 @@ export function copyAndRefAssets( return { id, external: true }; } - - // Ignore files coming from node modules - return false; } return null; diff --git a/packages/packemon/tests/__snapshots__/assets.test.ts.snap b/packages/packemon/tests/__snapshots__/assets.test.ts.snap new file mode 100644 index 000000000..237615cce --- /dev/null +++ b/packages/packemon/tests/__snapshots__/assets.test.ts.snap @@ -0,0 +1,173 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`vanilla extract > bundle + compile > assets/src/styles.css.ts.vanilla.css 1`] = ` +".styles_redText__exh0q70 { + color: red; +}" +`; + +exports[`vanilla extract > bundle + compile > assets/src/styles.css.ts.vanilla.css 2`] = ` +".styles_redText__exh0q70 { + color: red; +}" +`; + +exports[`vanilla extract > bundle + compile > esm/index.js 1`] = ` +"// Bundled with Packemon: https://packemon.dev +// Platform: browser, Support: stable, Format: esm + +import './assets/src/styles.css.ts.vanilla.css'; +var redText = 'styles_redText__exh0q70'; +const MyComponent = props => /*#__PURE__*/React.createElement("div", Object.assign({ + className: redText +}, props)); +export { MyComponent }; +//# sourceMappingURL=index.js.map +" +`; + +exports[`vanilla extract > bundle + compile > lib/index.js 1`] = ` +"// Bundled with Packemon: https://packemon.dev +// Platform: browser, Support: stable, Format: lib + +'use strict'; + +require('./assets/src/styles.css.ts.vanilla.css'); +var redText = 'styles_redText__exh0q70'; +const MyComponent = props => /*#__PURE__*/React.createElement("div", Object.assign({ + className: redText +}, props)); +exports.MyComponent = MyComponent; +//# sourceMappingURL=index.js.map +" +`; + +exports[`vanilla extract > bundle + no compile > esm/index.js 1`] = ` +"// Bundled with Packemon: https://packemon.dev +// Platform: browser, Support: stable, Format: esm + +import { style } from '@vanilla-extract/css'; +const redText = style({ + color: 'red' +}); +const MyComponent = props => /*#__PURE__*/React.createElement("div", Object.assign({ + className: redText +}, props)); +export { MyComponent }; +//# sourceMappingURL=index.js.map +" +`; + +exports[`vanilla extract > bundle + no compile > lib/index.js 1`] = ` +"// Bundled with Packemon: https://packemon.dev +// Platform: browser, Support: stable, Format: lib + +'use strict'; + +const css = require('@vanilla-extract/css'); +const redText = css.style({ + color: 'red' +}); +const MyComponent = props => /*#__PURE__*/React.createElement("div", Object.assign({ + className: redText +}, props)); +exports.MyComponent = MyComponent; +//# sourceMappingURL=index.js.map +" +`; + +exports[`vanilla extract > no bundle + compile > assets/src/styles.css.ts.vanilla.css 1`] = ` +".styles_redText__exh0q70 { + color: red; +}" +`; + +exports[`vanilla extract > no bundle + compile > assets/src/styles.css.ts.vanilla.css 2`] = ` +".styles_redText__exh0q70 { + color: red; +}" +`; + +exports[`vanilla extract > no bundle + compile > esm/index.js 1`] = ` +"import { redText } from './styles.css.js'; +const MyComponent = props => /*#__PURE__*/React.createElement("div", Object.assign({ + className: redText +}, props)); +export { MyComponent }; +//# sourceMappingURL=index.js.map +" +`; + +exports[`vanilla extract > no bundle + compile > esm/styles.css.js 1`] = ` +"import './assets/src/styles.css.ts.vanilla.css'; +var redText = 'styles_redText__exh0q70'; +export { redText }; +//# sourceMappingURL=styles.css.js.map +" +`; + +exports[`vanilla extract > no bundle + compile > lib/index.js 1`] = ` +"'use strict'; + +const styles_css = require('./styles.css.js'); +const MyComponent = props => /*#__PURE__*/React.createElement("div", Object.assign({ + className: styles_css.redText +}, props)); +exports.MyComponent = MyComponent; +//# sourceMappingURL=index.js.map +" +`; + +exports[`vanilla extract > no bundle + compile > lib/styles.css.js 1`] = ` +"'use strict'; + +require('./assets/src/styles.css.ts.vanilla.css'); +var redText = 'styles_redText__exh0q70'; +exports.redText = redText; +//# sourceMappingURL=styles.css.js.map +" +`; + +exports[`vanilla extract > no bundle + no compile > esm/index.js 1`] = ` +"import { redText } from './styles.css.js'; +const MyComponent = props => /*#__PURE__*/React.createElement("div", Object.assign({ + className: redText +}, props)); +export { MyComponent }; +//# sourceMappingURL=index.js.map +" +`; + +exports[`vanilla extract > no bundle + no compile > esm/styles.css.js 1`] = ` +"import { style } from '@vanilla-extract/css'; +const redText = style({ + color: 'red' +}); +export { redText }; +//# sourceMappingURL=styles.css.js.map +" +`; + +exports[`vanilla extract > no bundle + no compile > lib/index.js 1`] = ` +"'use strict'; + +const styles_css = require('./styles.css.js'); +const MyComponent = props => /*#__PURE__*/React.createElement("div", Object.assign({ + className: styles_css.redText +}, props)); +exports.MyComponent = MyComponent; +//# sourceMappingURL=index.js.map +" +`; + +exports[`vanilla extract > no bundle + no compile > lib/styles.css.js 1`] = ` +"'use strict'; + +const css = require('@vanilla-extract/css'); +const redText = css.style({ + color: 'red' +}); +exports.redText = redText; +//# sourceMappingURL=styles.css.js.map +" +`; diff --git a/packages/packemon/tests/assets.test.ts b/packages/packemon/tests/assets.test.ts new file mode 100644 index 000000000..6cfa6f93a --- /dev/null +++ b/packages/packemon/tests/assets.test.ts @@ -0,0 +1,100 @@ +import { InputPluginOption } from 'rollup'; +import { describe, it, vi } from 'vitest'; +import { Path } from '@boost/common'; +import { vanillaExtractPlugin } from '@vanilla-extract/rollup-plugin'; +import { Artifact } from '../src'; +import { getFixturePath, loadPackageAtPath, snapshotPackageBuildOutputs } from './helpers'; + +vi.setConfig({ testTimeout: 30_000 }); + +describe('vanilla extract', () => { + it('no bundle + compile', async () => { + const root = new Path(getFixturePath('project-assets-vanilla')); + const pkg = loadPackageAtPath(root); + + const index = new Artifact(pkg, [{ format: 'lib' }, { format: 'esm' }]); + index.bundle = false; + index.platform = 'browser'; + index.support = 'stable'; + index.inputs = { index: 'src/index.tsx' }; + + pkg.artifacts.push(index); + + await pkg.build( + { addEntries: false }, + { + rollupInput(config) { + (config.plugins as InputPluginOption[]).push( + vanillaExtractPlugin({ + cwd: root.path(), + }), + ); + }, + }, + ); + + snapshotPackageBuildOutputs(pkg); + }); + + it('bundle + compile', async () => { + const root = new Path(getFixturePath('project-assets-vanilla')); + const pkg = loadPackageAtPath(root); + + const index = new Artifact(pkg, [{ format: 'lib' }, { format: 'esm' }]); + index.bundle = true; + index.platform = 'browser'; + index.support = 'stable'; + index.inputs = { index: 'src/index.tsx' }; + + pkg.artifacts.push(index); + + await pkg.build( + { addEntries: false }, + { + rollupInput(config) { + (config.plugins as InputPluginOption[]).push( + vanillaExtractPlugin({ + cwd: root.path(), + }), + ); + }, + }, + ); + + snapshotPackageBuildOutputs(pkg); + }); + + it('no bundle + no compile', async () => { + const root = new Path(getFixturePath('project-assets-vanilla')); + const pkg = loadPackageAtPath(root); + + const index = new Artifact(pkg, [{ format: 'lib' }, { format: 'esm' }]); + index.bundle = false; + index.platform = 'browser'; + index.support = 'stable'; + index.inputs = { index: 'src/index.tsx' }; + + pkg.artifacts.push(index); + + await pkg.build({ addEntries: false }, {}); + + snapshotPackageBuildOutputs(pkg); + }); + + it('bundle + no compile', async () => { + const root = new Path(getFixturePath('project-assets-vanilla')); + const pkg = loadPackageAtPath(root); + + const index = new Artifact(pkg, [{ format: 'lib' }, { format: 'esm' }]); + index.bundle = true; + index.platform = 'browser'; + index.support = 'stable'; + index.inputs = { index: 'src/index.tsx' }; + + pkg.artifacts.push(index); + + await pkg.build({ addEntries: false }, {}); + + snapshotPackageBuildOutputs(pkg); + }); +}); diff --git a/packages/packemon/tests/examples/__snapshots__/assetImports.test.ts.snap b/packages/packemon/tests/examples/__snapshots__/assetImports.test.ts.snap index 17474e873..802323937 100644 --- a/packages/packemon/tests/examples/__snapshots__/assetImports.test.ts.snap +++ b/packages/packemon/tests/examples/__snapshots__/assetImports.test.ts.snap @@ -12,7 +12,7 @@ exports[`Assets > babel > transforms example test case: browser-current-esm > es import '../assets/styles-17df299b.css'; import '../assets/logo-c21f559f.svg'; -import 'website/src/css/custom.css'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: ["foo", "bar", "baz"], number: 123, @@ -40,7 +40,7 @@ exports[`Assets > babel > transforms example test case: browser-current-lib > li require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -63,17 +63,17 @@ exports[`Assets > babel > transforms example test case: browser-current-umd > .. exports[`Assets > babel > transforms example test case: browser-current-umd > umd/index-browser-current-umd.js 1`] = ` "(function (global, factory) { if (typeof define === "function" && define.amd) { - define(["../assets/styles-17df299b.css", "../assets/logo-c21f559f.svg", "website/src/css/custom.css"], factory); + define(["../assets/styles-17df299b.css", "../assets/logo-c21f559f.svg", "bootstrap/dist/css/bootstrap.css"], factory); } else if (typeof exports !== "undefined") { - factory(require("../assets/styles-17df299b.css"), require("../assets/logo-c21f559f.svg"), require("website/src/css/custom.css")); + factory(require("../assets/styles-17df299b.css"), require("../assets/logo-c21f559f.svg"), require("bootstrap/dist/css/bootstrap.css")); } else { var mod = { exports: {} }; - factory(global.styles17df299b, global.logoC21f559f, global.custom); + factory(global.styles17df299b, global.logoC21f559f, global.bootstrap); global.examples = mod.exports; } -})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_styles17df299b, _logoC21f559f, _custom) { +})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_styles17df299b, _logoC21f559f, _bootstrap) { "use strict"; // Bundled with Packemon: https://packemon.dev @@ -105,7 +105,7 @@ exports[`Assets > babel > transforms example test case: browser-experimental-esm import '../assets/styles-17df299b.css'; import '../assets/logo-c21f559f.svg'; -import 'website/src/css/custom.css'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: ["foo", "bar", "baz"], number: 123, @@ -133,7 +133,7 @@ exports[`Assets > babel > transforms example test case: browser-experimental-lib require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -156,17 +156,17 @@ exports[`Assets > babel > transforms example test case: browser-experimental-umd exports[`Assets > babel > transforms example test case: browser-experimental-umd > umd/index-browser-experimental-umd.js 1`] = ` "(function (global, factory) { if (typeof define === "function" && define.amd) { - define(["../assets/styles-17df299b.css", "../assets/logo-c21f559f.svg", "website/src/css/custom.css"], factory); + define(["../assets/styles-17df299b.css", "../assets/logo-c21f559f.svg", "bootstrap/dist/css/bootstrap.css"], factory); } else if (typeof exports !== "undefined") { - factory(require("../assets/styles-17df299b.css"), require("../assets/logo-c21f559f.svg"), require("website/src/css/custom.css")); + factory(require("../assets/styles-17df299b.css"), require("../assets/logo-c21f559f.svg"), require("bootstrap/dist/css/bootstrap.css")); } else { var mod = { exports: {} }; - factory(global.styles17df299b, global.logoC21f559f, global.custom); + factory(global.styles17df299b, global.logoC21f559f, global.bootstrap); global.examples = mod.exports; } -})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_styles17df299b, _logoC21f559f, _custom) { +})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_styles17df299b, _logoC21f559f, _bootstrap) { "use strict"; // Bundled with Packemon: https://packemon.dev @@ -198,7 +198,7 @@ exports[`Assets > babel > transforms example test case: browser-legacy-esm > esm import '../assets/styles-17df299b.css'; import '../assets/logo-c21f559f.svg'; -import 'website/src/css/custom.css'; +import 'bootstrap/dist/css/bootstrap.css'; var json = { list: ["foo", "bar", "baz"], number: 123, @@ -226,7 +226,7 @@ exports[`Assets > babel > transforms example test case: browser-legacy-lib > lib require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); var json = { list: ["foo", "bar", "baz"], number: 123, @@ -249,17 +249,17 @@ exports[`Assets > babel > transforms example test case: browser-legacy-umd > ../ exports[`Assets > babel > transforms example test case: browser-legacy-umd > umd/index-browser-legacy-umd.js 1`] = ` "(function (global, factory) { if (typeof define === "function" && define.amd) { - define(["../assets/styles-17df299b.css", "../assets/logo-c21f559f.svg", "website/src/css/custom.css"], factory); + define(["../assets/styles-17df299b.css", "../assets/logo-c21f559f.svg", "bootstrap/dist/css/bootstrap.css"], factory); } else if (typeof exports !== "undefined") { - factory(require("../assets/styles-17df299b.css"), require("../assets/logo-c21f559f.svg"), require("website/src/css/custom.css")); + factory(require("../assets/styles-17df299b.css"), require("../assets/logo-c21f559f.svg"), require("bootstrap/dist/css/bootstrap.css")); } else { var mod = { exports: {} }; - factory(global.styles17df299b, global.logoC21f559f, global.custom); + factory(global.styles17df299b, global.logoC21f559f, global.bootstrap); global.examples = mod.exports; } -})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_styles17df299b, _logoC21f559f, _custom) { +})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_styles17df299b, _logoC21f559f, _bootstrap) { "use strict"; // Bundled with Packemon: https://packemon.dev @@ -291,7 +291,7 @@ exports[`Assets > babel > transforms example test case: browser-stable-esm > esm import '../assets/styles-17df299b.css'; import '../assets/logo-c21f559f.svg'; -import 'website/src/css/custom.css'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: ["foo", "bar", "baz"], number: 123, @@ -319,7 +319,7 @@ exports[`Assets > babel > transforms example test case: browser-stable-lib > lib require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -342,17 +342,17 @@ exports[`Assets > babel > transforms example test case: browser-stable-umd > ../ exports[`Assets > babel > transforms example test case: browser-stable-umd > umd/index-browser-stable-umd.js 1`] = ` "(function (global, factory) { if (typeof define === "function" && define.amd) { - define(["../assets/styles-17df299b.css", "../assets/logo-c21f559f.svg", "website/src/css/custom.css"], factory); + define(["../assets/styles-17df299b.css", "../assets/logo-c21f559f.svg", "bootstrap/dist/css/bootstrap.css"], factory); } else if (typeof exports !== "undefined") { - factory(require("../assets/styles-17df299b.css"), require("../assets/logo-c21f559f.svg"), require("website/src/css/custom.css")); + factory(require("../assets/styles-17df299b.css"), require("../assets/logo-c21f559f.svg"), require("bootstrap/dist/css/bootstrap.css")); } else { var mod = { exports: {} }; - factory(global.styles17df299b, global.logoC21f559f, global.custom); + factory(global.styles17df299b, global.logoC21f559f, global.bootstrap); global.examples = mod.exports; } -})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_styles17df299b, _logoC21f559f, _custom) { +})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_styles17df299b, _logoC21f559f, _bootstrap) { "use strict"; // Bundled with Packemon: https://packemon.dev @@ -384,7 +384,7 @@ exports[`Assets > babel > transforms example test case: electron-current-esm > e import '../assets/styles-17df299b.css'; import '../assets/logo-c21f559f.svg'; -import 'website/src/css/custom.css'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: ["foo", "bar", "baz"], number: 123, @@ -412,7 +412,7 @@ exports[`Assets > babel > transforms example test case: electron-current-lib > l require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -438,7 +438,7 @@ exports[`Assets > babel > transforms example test case: electron-experimental-es import '../assets/styles-17df299b.css'; import '../assets/logo-c21f559f.svg'; -import 'website/src/css/custom.css'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: ["foo", "bar", "baz"], number: 123, @@ -466,7 +466,7 @@ exports[`Assets > babel > transforms example test case: electron-experimental-li require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -492,7 +492,7 @@ exports[`Assets > babel > transforms example test case: electron-legacy-esm > es import '../assets/styles-17df299b.css'; import '../assets/logo-c21f559f.svg'; -import 'website/src/css/custom.css'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: ["foo", "bar", "baz"], number: 123, @@ -520,7 +520,7 @@ exports[`Assets > babel > transforms example test case: electron-legacy-lib > li require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -546,7 +546,7 @@ exports[`Assets > babel > transforms example test case: electron-stable-esm > es import '../assets/styles-17df299b.css'; import '../assets/logo-c21f559f.svg'; -import 'website/src/css/custom.css'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: ["foo", "bar", "baz"], number: 123, @@ -574,7 +574,7 @@ exports[`Assets > babel > transforms example test case: electron-stable-lib > li require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -600,7 +600,7 @@ exports[`Assets > babel > transforms example test case: native-current-esm > esm import '../assets/styles-17df299b.css'; import '../assets/logo-c21f559f.svg'; -import 'website/src/css/custom.css'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: ["foo", "bar", "baz"], number: 123, @@ -628,7 +628,7 @@ exports[`Assets > babel > transforms example test case: native-current-lib > lib require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -654,7 +654,7 @@ exports[`Assets > babel > transforms example test case: native-experimental-esm import '../assets/styles-17df299b.css'; import '../assets/logo-c21f559f.svg'; -import 'website/src/css/custom.css'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: ["foo", "bar", "baz"], number: 123, @@ -682,7 +682,7 @@ exports[`Assets > babel > transforms example test case: native-experimental-lib require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -708,7 +708,7 @@ exports[`Assets > babel > transforms example test case: native-legacy-esm > esm/ import '../assets/styles-17df299b.css'; import '../assets/logo-c21f559f.svg'; -import 'website/src/css/custom.css'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: ["foo", "bar", "baz"], number: 123, @@ -736,7 +736,7 @@ exports[`Assets > babel > transforms example test case: native-legacy-lib > lib/ require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -762,7 +762,7 @@ exports[`Assets > babel > transforms example test case: native-stable-esm > esm/ import '../assets/styles-17df299b.css'; import '../assets/logo-c21f559f.svg'; -import 'website/src/css/custom.css'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: ["foo", "bar", "baz"], number: 123, @@ -790,7 +790,7 @@ exports[`Assets > babel > transforms example test case: native-stable-lib > lib/ require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -818,7 +818,7 @@ exports[`Assets > babel > transforms example test case: node-current-cjs > cjs/i require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -853,7 +853,7 @@ exports[`Assets > babel > transforms example test case: node-current-lib > lib/i require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -879,7 +879,7 @@ exports[`Assets > babel > transforms example test case: node-current-mjs > mjs/i import '../assets/styles-17df299b.css'; import '../assets/logo-c21f559f.svg'; -import 'website/src/css/custom.css'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: ["foo", "bar", "baz"], number: 123, @@ -907,7 +907,7 @@ exports[`Assets > babel > transforms example test case: node-experimental-cjs > require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -942,7 +942,7 @@ exports[`Assets > babel > transforms example test case: node-experimental-lib > require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -968,7 +968,7 @@ exports[`Assets > babel > transforms example test case: node-experimental-mjs > import '../assets/styles-17df299b.css'; import '../assets/logo-c21f559f.svg'; -import 'website/src/css/custom.css'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: ["foo", "bar", "baz"], number: 123, @@ -996,7 +996,7 @@ exports[`Assets > babel > transforms example test case: node-legacy-cjs > cjs/in require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -1031,7 +1031,7 @@ exports[`Assets > babel > transforms example test case: node-legacy-lib > lib/in require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -1057,7 +1057,7 @@ exports[`Assets > babel > transforms example test case: node-legacy-mjs > mjs/in import '../assets/styles-17df299b.css'; import '../assets/logo-c21f559f.svg'; -import 'website/src/css/custom.css'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: ["foo", "bar", "baz"], number: 123, @@ -1085,7 +1085,7 @@ exports[`Assets > babel > transforms example test case: node-stable-cjs > cjs/in require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -1120,7 +1120,7 @@ exports[`Assets > babel > transforms example test case: node-stable-lib > lib/in require('../assets/styles-17df299b.css'); require('../assets/logo-c21f559f.svg'); -require('website/src/css/custom.css'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: ["foo", "bar", "baz"], number: 123, @@ -1146,7 +1146,7 @@ exports[`Assets > babel > transforms example test case: node-stable-mjs > mjs/in import '../assets/styles-17df299b.css'; import '../assets/logo-c21f559f.svg'; -import 'website/src/css/custom.css'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: ["foo", "bar", "baz"], number: 123, @@ -1171,7 +1171,7 @@ exports[`Assets > swc > transforms example test case: browser-current-esm > esm/ // Platform: browser, Support: current, Format: esm import "../assets/styles-17df299b.css"; import "../assets/logo-c21f559f.svg"; -import "website/src/css/custom.css"; +import "bootstrap/dist/css/bootstrap.css"; const json = { list: [ "foo", @@ -1201,7 +1201,7 @@ exports[`Assets > swc > transforms example test case: browser-current-lib > lib/ "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -1227,15 +1227,15 @@ exports[`Assets > swc > transforms example test case: browser-current-umd > ../a exports[`Assets > swc > transforms example test case: browser-current-umd > umd/index-browser-current-umd.js 1`] = ` "(function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("../assets/styles-17df299b.css"), require("../assets/logo-c21f559f.svg"), require("website/src/css/custom.css")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("../assets/styles-17df299b.css"), require("../assets/logo-c21f559f.svg"), require("bootstrap/dist/css/bootstrap.css")); else if (typeof define === "function" && define.amd) define([ "exports", "../assets/styles-17df299b.css", "../assets/logo-c21f559f.svg", - "website/src/css/custom.css" + "bootstrap/dist/css/bootstrap.css" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.examples = {}, global.styles17Df299BCss, global.logoC21F559FSvg, global.customCss); -})(this, function(exports, _styles17df299bcss, _logoc21f559fsvg, _customcss) { + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.examples = {}, global.styles17Df299BCss, global.logoC21F559FSvg, global.bootstrapCss); +})(this, function(exports, _styles17df299bcss, _logoc21f559fsvg, _bootstrapcss) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true @@ -1269,7 +1269,7 @@ exports[`Assets > swc > transforms example test case: browser-experimental-esm > // Platform: browser, Support: experimental, Format: esm import "../assets/styles-17df299b.css"; import "../assets/logo-c21f559f.svg"; -import "website/src/css/custom.css"; +import "bootstrap/dist/css/bootstrap.css"; const json = { list: [ "foo", @@ -1299,7 +1299,7 @@ exports[`Assets > swc > transforms example test case: browser-experimental-lib > "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -1325,15 +1325,15 @@ exports[`Assets > swc > transforms example test case: browser-experimental-umd > exports[`Assets > swc > transforms example test case: browser-experimental-umd > umd/index-browser-experimental-umd.js 1`] = ` "(function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("../assets/styles-17df299b.css"), require("../assets/logo-c21f559f.svg"), require("website/src/css/custom.css")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("../assets/styles-17df299b.css"), require("../assets/logo-c21f559f.svg"), require("bootstrap/dist/css/bootstrap.css")); else if (typeof define === "function" && define.amd) define([ "exports", "../assets/styles-17df299b.css", "../assets/logo-c21f559f.svg", - "website/src/css/custom.css" + "bootstrap/dist/css/bootstrap.css" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.examples = {}, global.styles17Df299BCss, global.logoC21F559FSvg, global.customCss); -})(this, function(exports, _styles17df299bcss, _logoc21f559fsvg, _customcss) { + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.examples = {}, global.styles17Df299BCss, global.logoC21F559FSvg, global.bootstrapCss); +})(this, function(exports, _styles17df299bcss, _logoc21f559fsvg, _bootstrapcss) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true @@ -1367,7 +1367,7 @@ exports[`Assets > swc > transforms example test case: browser-legacy-esm > esm/i // Platform: browser, Support: legacy, Format: esm import "../assets/styles-17df299b.css"; import "../assets/logo-c21f559f.svg"; -import "website/src/css/custom.css"; +import "bootstrap/dist/css/bootstrap.css"; var json = { list: [ "foo", @@ -1397,7 +1397,7 @@ exports[`Assets > swc > transforms example test case: browser-legacy-lib > lib/i "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); var json = { list: [ "foo", @@ -1423,15 +1423,15 @@ exports[`Assets > swc > transforms example test case: browser-legacy-umd > ../as exports[`Assets > swc > transforms example test case: browser-legacy-umd > umd/index-browser-legacy-umd.js 1`] = ` "(function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("../assets/styles-17df299b.css"), require("../assets/logo-c21f559f.svg"), require("website/src/css/custom.css")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("../assets/styles-17df299b.css"), require("../assets/logo-c21f559f.svg"), require("bootstrap/dist/css/bootstrap.css")); else if (typeof define === "function" && define.amd) define([ "exports", "../assets/styles-17df299b.css", "../assets/logo-c21f559f.svg", - "website/src/css/custom.css" + "bootstrap/dist/css/bootstrap.css" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.examples = {}, global.styles17Df299BCss, global.logoC21F559FSvg, global.customCss); -})(this, function(exports, _styles17df299bcss, _logoc21f559fsvg, _customcss) { + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.examples = {}, global.styles17Df299BCss, global.logoC21F559FSvg, global.bootstrapCss); +})(this, function(exports, _styles17df299bcss, _logoc21f559fsvg, _bootstrapcss) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true @@ -1465,7 +1465,7 @@ exports[`Assets > swc > transforms example test case: browser-stable-esm > esm/i // Platform: browser, Support: stable, Format: esm import "../assets/styles-17df299b.css"; import "../assets/logo-c21f559f.svg"; -import "website/src/css/custom.css"; +import "bootstrap/dist/css/bootstrap.css"; const json = { list: [ "foo", @@ -1495,7 +1495,7 @@ exports[`Assets > swc > transforms example test case: browser-stable-lib > lib/i "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -1521,15 +1521,15 @@ exports[`Assets > swc > transforms example test case: browser-stable-umd > ../as exports[`Assets > swc > transforms example test case: browser-stable-umd > umd/index-browser-stable-umd.js 1`] = ` "(function(global, factory) { - if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("../assets/styles-17df299b.css"), require("../assets/logo-c21f559f.svg"), require("website/src/css/custom.css")); + if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("../assets/styles-17df299b.css"), require("../assets/logo-c21f559f.svg"), require("bootstrap/dist/css/bootstrap.css")); else if (typeof define === "function" && define.amd) define([ "exports", "../assets/styles-17df299b.css", "../assets/logo-c21f559f.svg", - "website/src/css/custom.css" + "bootstrap/dist/css/bootstrap.css" ], factory); - else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.examples = {}, global.styles17Df299BCss, global.logoC21F559FSvg, global.customCss); -})(this, function(exports, _styles17df299bcss, _logoc21f559fsvg, _customcss) { + else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.examples = {}, global.styles17Df299BCss, global.logoC21F559FSvg, global.bootstrapCss); +})(this, function(exports, _styles17df299bcss, _logoc21f559fsvg, _bootstrapcss) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true @@ -1563,7 +1563,7 @@ exports[`Assets > swc > transforms example test case: electron-current-esm > esm // Platform: electron, Support: current, Format: esm import "../assets/styles-17df299b.css"; import "../assets/logo-c21f559f.svg"; -import "website/src/css/custom.css"; +import "bootstrap/dist/css/bootstrap.css"; const json = { list: [ "foo", @@ -1593,7 +1593,7 @@ exports[`Assets > swc > transforms example test case: electron-current-lib > lib "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -1622,7 +1622,7 @@ exports[`Assets > swc > transforms example test case: electron-experimental-esm // Platform: electron, Support: experimental, Format: esm import "../assets/styles-17df299b.css"; import "../assets/logo-c21f559f.svg"; -import "website/src/css/custom.css"; +import "bootstrap/dist/css/bootstrap.css"; const json = { list: [ "foo", @@ -1652,7 +1652,7 @@ exports[`Assets > swc > transforms example test case: electron-experimental-lib "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -1681,7 +1681,7 @@ exports[`Assets > swc > transforms example test case: electron-legacy-esm > esm/ // Platform: electron, Support: legacy, Format: esm import "../assets/styles-17df299b.css"; import "../assets/logo-c21f559f.svg"; -import "website/src/css/custom.css"; +import "bootstrap/dist/css/bootstrap.css"; const json = { list: [ "foo", @@ -1711,7 +1711,7 @@ exports[`Assets > swc > transforms example test case: electron-legacy-lib > lib/ "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -1740,7 +1740,7 @@ exports[`Assets > swc > transforms example test case: electron-stable-esm > esm/ // Platform: electron, Support: stable, Format: esm import "../assets/styles-17df299b.css"; import "../assets/logo-c21f559f.svg"; -import "website/src/css/custom.css"; +import "bootstrap/dist/css/bootstrap.css"; const json = { list: [ "foo", @@ -1770,7 +1770,7 @@ exports[`Assets > swc > transforms example test case: electron-stable-lib > lib/ "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -1799,7 +1799,7 @@ exports[`Assets > swc > transforms example test case: native-current-esm > esm/i // Platform: native, Support: current, Format: esm import "../assets/styles-17df299b.css"; import "../assets/logo-c21f559f.svg"; -import "website/src/css/custom.css"; +import "bootstrap/dist/css/bootstrap.css"; const json = { list: [ "foo", @@ -1829,7 +1829,7 @@ exports[`Assets > swc > transforms example test case: native-current-lib > lib/i "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -1858,7 +1858,7 @@ exports[`Assets > swc > transforms example test case: native-experimental-esm > // Platform: native, Support: experimental, Format: esm import "../assets/styles-17df299b.css"; import "../assets/logo-c21f559f.svg"; -import "website/src/css/custom.css"; +import "bootstrap/dist/css/bootstrap.css"; const json = { list: [ "foo", @@ -1888,7 +1888,7 @@ exports[`Assets > swc > transforms example test case: native-experimental-lib > "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -1917,7 +1917,7 @@ exports[`Assets > swc > transforms example test case: native-legacy-esm > esm/in // Platform: native, Support: legacy, Format: esm import "../assets/styles-17df299b.css"; import "../assets/logo-c21f559f.svg"; -import "website/src/css/custom.css"; +import "bootstrap/dist/css/bootstrap.css"; const json = { list: [ "foo", @@ -1947,7 +1947,7 @@ exports[`Assets > swc > transforms example test case: native-legacy-lib > lib/in "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -1976,7 +1976,7 @@ exports[`Assets > swc > transforms example test case: native-stable-esm > esm/in // Platform: native, Support: stable, Format: esm import "../assets/styles-17df299b.css"; import "../assets/logo-c21f559f.svg"; -import "website/src/css/custom.css"; +import "bootstrap/dist/css/bootstrap.css"; const json = { list: [ "foo", @@ -2006,7 +2006,7 @@ exports[`Assets > swc > transforms example test case: native-stable-lib > lib/in "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -2036,7 +2036,7 @@ exports[`Assets > swc > transforms example test case: node-current-cjs > cjs/ind "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -2073,7 +2073,7 @@ exports[`Assets > swc > transforms example test case: node-current-lib > lib/ind "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -2102,7 +2102,7 @@ exports[`Assets > swc > transforms example test case: node-current-mjs > mjs/ind // Platform: node, Support: current, Format: mjs import "../assets/styles-17df299b.css"; import "../assets/logo-c21f559f.svg"; -import "website/src/css/custom.css"; +import "bootstrap/dist/css/bootstrap.css"; const json = { list: [ "foo", @@ -2132,7 +2132,7 @@ exports[`Assets > swc > transforms example test case: node-experimental-cjs > cj "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -2169,7 +2169,7 @@ exports[`Assets > swc > transforms example test case: node-experimental-lib > li "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -2198,7 +2198,7 @@ exports[`Assets > swc > transforms example test case: node-experimental-mjs > mj // Platform: node, Support: experimental, Format: mjs import "../assets/styles-17df299b.css"; import "../assets/logo-c21f559f.svg"; -import "website/src/css/custom.css"; +import "bootstrap/dist/css/bootstrap.css"; const json = { list: [ "foo", @@ -2228,7 +2228,7 @@ exports[`Assets > swc > transforms example test case: node-legacy-cjs > cjs/inde "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -2265,7 +2265,7 @@ exports[`Assets > swc > transforms example test case: node-legacy-lib > lib/inde "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -2294,7 +2294,7 @@ exports[`Assets > swc > transforms example test case: node-legacy-mjs > mjs/inde // Platform: node, Support: legacy, Format: mjs import "../assets/styles-17df299b.css"; import "../assets/logo-c21f559f.svg"; -import "website/src/css/custom.css"; +import "bootstrap/dist/css/bootstrap.css"; const json = { list: [ "foo", @@ -2324,7 +2324,7 @@ exports[`Assets > swc > transforms example test case: node-stable-cjs > cjs/inde "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -2361,7 +2361,7 @@ exports[`Assets > swc > transforms example test case: node-stable-lib > lib/inde "use strict"; require("../assets/styles-17df299b.css"); require("../assets/logo-c21f559f.svg"); -require("website/src/css/custom.css"); +require("bootstrap/dist/css/bootstrap.css"); const json = { list: [ "foo", @@ -2390,7 +2390,7 @@ exports[`Assets > swc > transforms example test case: node-stable-mjs > mjs/inde // Platform: node, Support: stable, Format: mjs import "../assets/styles-17df299b.css"; import "../assets/logo-c21f559f.svg"; -import "website/src/css/custom.css"; +import "bootstrap/dist/css/bootstrap.css"; const json = { list: [ "foo", diff --git a/packages/packemon/tests/helpers.ts b/packages/packemon/tests/helpers.ts index e015f25ce..a50de952c 100644 --- a/packages/packemon/tests/helpers.ts +++ b/packages/packemon/tests/helpers.ts @@ -144,7 +144,7 @@ export function testExampleOutput( delete process.env.PACKEMON_SWC; }); - [...BUILDS.values()].forEach((build) => { + [...BUILDS.values()].some((build) => { const pkg = loadPackageAtPath(root); const env = `${build.platform}-${build.support}-${build.format}`; @@ -176,6 +176,8 @@ export function testExampleOutput( snapshotPackageBuildOutputs(pkg); }); + + return false; }); }); } diff --git a/packemon.config.js b/packemon.config.js deleted file mode 100644 index 37f61fe07..000000000 --- a/packemon.config.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - swc: true, -}; diff --git a/tests/__fixtures__/examples/asset-imports.ts b/tests/__fixtures__/examples/asset-imports.ts index 771b6c78a..92e123890 100644 --- a/tests/__fixtures__/examples/asset-imports.ts +++ b/tests/__fixtures__/examples/asset-imports.ts @@ -3,6 +3,6 @@ import './styles.css'; import './logo.svg'; // Verify assets in node modules are not copied -import 'website/src/css/custom.css'; +import 'bootstrap/dist/css/bootstrap.css'; console.log(json); diff --git a/tests/__fixtures__/examples/package.json b/tests/__fixtures__/examples/package.json index 906ab43ba..142675d83 100644 --- a/tests/__fixtures__/examples/package.json +++ b/tests/__fixtures__/examples/package.json @@ -6,6 +6,7 @@ "typescript": "*" }, "dependencies": { + "bootstrap": "*", "optimal": "*" } } diff --git a/tests/__fixtures__/project-assets-vanilla/package.json b/tests/__fixtures__/project-assets-vanilla/package.json new file mode 100644 index 000000000..16246ed1a --- /dev/null +++ b/tests/__fixtures__/project-assets-vanilla/package.json @@ -0,0 +1,15 @@ +{ + "name": "project-assets-vanilla", + "packemon": { + "bundle": true, + "platform": "node" + }, + "main": "./lib/index.js", + "peerDependencies": { + "react": "*", + "typescript": "*" + }, + "devDependencies": { + "@vanilla-extract/css": "*" + } +} diff --git a/tests/__fixtures__/project-assets-vanilla/src/index.tsx b/tests/__fixtures__/project-assets-vanilla/src/index.tsx new file mode 100644 index 000000000..345a75977 --- /dev/null +++ b/tests/__fixtures__/project-assets-vanilla/src/index.tsx @@ -0,0 +1,3 @@ +import { redText } from './styles.css'; + +export const MyComponent = (props) =>
; diff --git a/tests/__fixtures__/project-assets-vanilla/src/styles.css.ts b/tests/__fixtures__/project-assets-vanilla/src/styles.css.ts new file mode 100644 index 000000000..ac900877c --- /dev/null +++ b/tests/__fixtures__/project-assets-vanilla/src/styles.css.ts @@ -0,0 +1,5 @@ +import { style } from '@vanilla-extract/css'; + +export const redText = style({ + color: 'red', +}); diff --git a/tests/__fixtures__/project-assets-vanilla/tsconfig.json b/tests/__fixtures__/project-assets-vanilla/tsconfig.json new file mode 100644 index 000000000..feace488e --- /dev/null +++ b/tests/__fixtures__/project-assets-vanilla/tsconfig.json @@ -0,0 +1,6 @@ +{ + "include": ["src/**/*"], + "compilerOptions": { + "jsx": "react-jsx" + } +} diff --git a/yarn.lock b/yarn.lock index e948b3bc4..efa8f2d96 100644 --- a/yarn.lock +++ b/yarn.lock @@ -258,7 +258,7 @@ __metadata: languageName: node linkType: hard -"@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3, @babel/core@npm:^7.19.6, @babel/core@npm:^7.23.3, @babel/core@npm:^7.24.0": +"@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3, @babel/core@npm:^7.19.6, @babel/core@npm:^7.23.3, @babel/core@npm:^7.23.9, @babel/core@npm:^7.24.0": version: 7.24.0 resolution: "@babel/core@npm:7.24.0" dependencies: @@ -2615,156 +2615,170 @@ __metadata: languageName: node linkType: hard -"@esbuild/android-arm64@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/android-arm64@npm:0.19.9" +"@emotion/hash@npm:^0.9.0": + version: 0.9.1 + resolution: "@emotion/hash@npm:0.9.1" + checksum: 10/716e17e48bf9047bf9383982c071de49f2615310fb4e986738931776f5a823bc1f29c84501abe0d3df91a3803c80122d24e28b57351bca9e01356ebb33d89876 + languageName: node + linkType: hard + +"@esbuild/aix-ppc64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/aix-ppc64@npm:0.19.12" + conditions: os=aix & cpu=ppc64 + languageName: node + linkType: hard + +"@esbuild/android-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/android-arm64@npm:0.19.12" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@esbuild/android-arm@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/android-arm@npm:0.19.9" +"@esbuild/android-arm@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/android-arm@npm:0.19.12" conditions: os=android & cpu=arm languageName: node linkType: hard -"@esbuild/android-x64@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/android-x64@npm:0.19.9" +"@esbuild/android-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/android-x64@npm:0.19.12" conditions: os=android & cpu=x64 languageName: node linkType: hard -"@esbuild/darwin-arm64@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/darwin-arm64@npm:0.19.9" +"@esbuild/darwin-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/darwin-arm64@npm:0.19.12" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@esbuild/darwin-x64@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/darwin-x64@npm:0.19.9" +"@esbuild/darwin-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/darwin-x64@npm:0.19.12" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@esbuild/freebsd-arm64@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/freebsd-arm64@npm:0.19.9" +"@esbuild/freebsd-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/freebsd-arm64@npm:0.19.12" conditions: os=freebsd & cpu=arm64 languageName: node linkType: hard -"@esbuild/freebsd-x64@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/freebsd-x64@npm:0.19.9" +"@esbuild/freebsd-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/freebsd-x64@npm:0.19.12" conditions: os=freebsd & cpu=x64 languageName: node linkType: hard -"@esbuild/linux-arm64@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/linux-arm64@npm:0.19.9" +"@esbuild/linux-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-arm64@npm:0.19.12" conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"@esbuild/linux-arm@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/linux-arm@npm:0.19.9" +"@esbuild/linux-arm@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-arm@npm:0.19.12" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@esbuild/linux-ia32@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/linux-ia32@npm:0.19.9" +"@esbuild/linux-ia32@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-ia32@npm:0.19.12" conditions: os=linux & cpu=ia32 languageName: node linkType: hard -"@esbuild/linux-loong64@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/linux-loong64@npm:0.19.9" +"@esbuild/linux-loong64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-loong64@npm:0.19.12" conditions: os=linux & cpu=loong64 languageName: node linkType: hard -"@esbuild/linux-mips64el@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/linux-mips64el@npm:0.19.9" +"@esbuild/linux-mips64el@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-mips64el@npm:0.19.12" conditions: os=linux & cpu=mips64el languageName: node linkType: hard -"@esbuild/linux-ppc64@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/linux-ppc64@npm:0.19.9" +"@esbuild/linux-ppc64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-ppc64@npm:0.19.12" conditions: os=linux & cpu=ppc64 languageName: node linkType: hard -"@esbuild/linux-riscv64@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/linux-riscv64@npm:0.19.9" +"@esbuild/linux-riscv64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-riscv64@npm:0.19.12" conditions: os=linux & cpu=riscv64 languageName: node linkType: hard -"@esbuild/linux-s390x@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/linux-s390x@npm:0.19.9" +"@esbuild/linux-s390x@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-s390x@npm:0.19.12" conditions: os=linux & cpu=s390x languageName: node linkType: hard -"@esbuild/linux-x64@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/linux-x64@npm:0.19.9" +"@esbuild/linux-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-x64@npm:0.19.12" conditions: os=linux & cpu=x64 languageName: node linkType: hard -"@esbuild/netbsd-x64@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/netbsd-x64@npm:0.19.9" +"@esbuild/netbsd-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/netbsd-x64@npm:0.19.12" conditions: os=netbsd & cpu=x64 languageName: node linkType: hard -"@esbuild/openbsd-x64@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/openbsd-x64@npm:0.19.9" +"@esbuild/openbsd-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/openbsd-x64@npm:0.19.12" conditions: os=openbsd & cpu=x64 languageName: node linkType: hard -"@esbuild/sunos-x64@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/sunos-x64@npm:0.19.9" +"@esbuild/sunos-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/sunos-x64@npm:0.19.12" conditions: os=sunos & cpu=x64 languageName: node linkType: hard -"@esbuild/win32-arm64@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/win32-arm64@npm:0.19.9" +"@esbuild/win32-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/win32-arm64@npm:0.19.12" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@esbuild/win32-ia32@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/win32-ia32@npm:0.19.9" +"@esbuild/win32-ia32@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/win32-ia32@npm:0.19.12" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@esbuild/win32-x64@npm:0.19.9": - version: 0.19.9 - resolution: "@esbuild/win32-x64@npm:0.19.9" +"@esbuild/win32-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/win32-x64@npm:0.19.12" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -5445,13 +5459,13 @@ __metadata: languageName: node linkType: hard -"@swc/cli@npm:^0.3.9": - version: 0.3.9 - resolution: "@swc/cli@npm:0.3.9" +"@swc/cli@npm:^0.3.10": + version: 0.3.10 + resolution: "@swc/cli@npm:0.3.10" dependencies: "@mole-inc/bin-wrapper": "npm:^8.0.1" "@swc/counter": "npm:^0.1.3" - commander: "npm:^7.1.0" + commander: "npm:^8.3.0" fast-glob: "npm:^3.2.5" minimatch: "npm:^9.0.3" piscina: "npm:^4.3.0" @@ -5468,7 +5482,7 @@ __metadata: spack: bin/spack.js swc: bin/swc.js swcx: bin/swcx.js - checksum: 10/3dde580c822e35bb6bea7857c6fbc2f9a326d1c2c061fb0aa90a8ac42c369302fdaffbf954c3d74b48e07c03d82737de6f8aee3ed1945251941385267624ab52 + checksum: 10/95d2ffba809dc49e5b9ae7be689657c85934c1c6c39c7ba2e326169e5c0974838cf673f0e7b4b3dda277eec81c696bb5d0ce8afbd95856cffa7b0d903b327848 languageName: node linkType: hard @@ -6094,10 +6108,10 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^16.18.85": - version: 16.18.85 - resolution: "@types/node@npm:16.18.85" - checksum: 10/c9ca16492b05bd4142cb70215697f013529017e5f8115bb22bb9d8744936915735a464fe081742501fc0a23656a781957bc6af633be8a67b16f0970a4f67c3c0 +"@types/node@npm:^16.18.86": + version: 16.18.86 + resolution: "@types/node@npm:16.18.86" + checksum: 10/a2d4f36698abd0da6ec548d72a154566729b80dbec7cf14ddcc444ced14f483733a29eaa65d4128ffc9720414b2b4d5c35085b9cebfdf8ef43bf644e12c991b9 languageName: node linkType: hard @@ -6175,14 +6189,14 @@ __metadata: languageName: node linkType: hard -"@types/react@npm:*, @types/react@npm:^18.2.60": - version: 18.2.60 - resolution: "@types/react@npm:18.2.60" +"@types/react@npm:*, @types/react@npm:^18.2.61": + version: 18.2.61 + resolution: "@types/react@npm:18.2.61" dependencies: "@types/prop-types": "npm:*" "@types/scheduler": "npm:*" csstype: "npm:^3.0.2" - checksum: 10/5f2f6091623f13375a5bbc7e5c222cd212b5d6366ead737b76c853f6f52b314db24af5ae3f688d2d49814c668c216858a75433f145311839d8989d46bb3cbecf + checksum: 10/74c2920ccca83fc51190ed4eda1066fa6a644197839dd37765fcce93cbd50b7a52b75815ce0083bb95195f886c80b57745314dd49ecbf235fa93d753ae2260bc languageName: node linkType: hard @@ -6515,6 +6529,73 @@ __metadata: languageName: node linkType: hard +"@vanilla-extract/babel-plugin-debug-ids@npm:^1.0.5": + version: 1.0.5 + resolution: "@vanilla-extract/babel-plugin-debug-ids@npm:1.0.5" + dependencies: + "@babel/core": "npm:^7.23.9" + checksum: 10/a6175bf172fef64bfdfd0e6fbcc0706d4349ac70182499ad9ef862b7ddb856f39e87771ffca927b9ed607e76ed1567715623dc06f5d4a74eeeddfface57e548f + languageName: node + linkType: hard + +"@vanilla-extract/css@npm:^1.14.0": + version: 1.14.1 + resolution: "@vanilla-extract/css@npm:1.14.1" + dependencies: + "@emotion/hash": "npm:^0.9.0" + "@vanilla-extract/private": "npm:^1.0.3" + chalk: "npm:^4.1.1" + css-what: "npm:^6.1.0" + cssesc: "npm:^3.0.0" + csstype: "npm:^3.0.7" + deep-object-diff: "npm:^1.1.9" + deepmerge: "npm:^4.2.2" + media-query-parser: "npm:^2.0.2" + modern-ahocorasick: "npm:^1.0.0" + outdent: "npm:^0.8.0" + checksum: 10/7ecdddfc6d24e80ee43496577294b580c71fa6fdbaa022c91930abf0dbe0923dd3f886e452b1f5ebe12dbfb61b080a5e3ef8939a897bf5b5e0dd8c93f04267f0 + languageName: node + linkType: hard + +"@vanilla-extract/integration@npm:^7.0.0": + version: 7.1.1 + resolution: "@vanilla-extract/integration@npm:7.1.1" + dependencies: + "@babel/core": "npm:^7.23.9" + "@babel/plugin-syntax-typescript": "npm:^7.23.3" + "@vanilla-extract/babel-plugin-debug-ids": "npm:^1.0.5" + "@vanilla-extract/css": "npm:^1.14.0" + esbuild: "npm:esbuild@~0.17.6 || ~0.18.0 || ~0.19.0" + eval: "npm:0.1.8" + find-up: "npm:^5.0.0" + javascript-stringify: "npm:^2.0.1" + lodash: "npm:^4.17.21" + mlly: "npm:^1.4.2" + outdent: "npm:^0.8.0" + vite: "npm:^5.0.11" + vite-node: "npm:^1.2.0" + checksum: 10/761585c98363b7f6b49cc69622d982d9eaf84c62d97a2a7d84f6de94f97341d29b544bda12492fd5e6d9c20d99255db675e0235162a749d670c39875f517d2d7 + languageName: node + linkType: hard + +"@vanilla-extract/private@npm:^1.0.3": + version: 1.0.3 + resolution: "@vanilla-extract/private@npm:1.0.3" + checksum: 10/5f27238d711fc190146869cb76258328d8d8c09bf4fca9df65168ce13704a5c78750824eb469fa961a2ab1cfefca43c37607d755b8a4aa937c8dd7df478036df + languageName: node + linkType: hard + +"@vanilla-extract/rollup-plugin@npm:^1.3.4": + version: 1.3.4 + resolution: "@vanilla-extract/rollup-plugin@npm:1.3.4" + dependencies: + "@vanilla-extract/integration": "npm:^7.0.0" + peerDependencies: + rollup: ^2.0.0 || ^3.0.0 || ^4.0.0 + checksum: 10/47cfebe3c2fce3870d994eca48342d04c8b6f6204c221d29afbbc48c27b1e1347872e5ca1d6e03588b20680e621aecac42eeef78a9f60230d1e4a8b46384cc95 + languageName: node + linkType: hard + "@vitest/expect@npm:1.3.1": version: 1.3.1 resolution: "@vitest/expect@npm:1.3.1" @@ -7953,6 +8034,15 @@ __metadata: languageName: node linkType: hard +"bootstrap@npm:^5.3.3": + version: 5.3.3 + resolution: "bootstrap@npm:5.3.3" + peerDependencies: + "@popperjs/core": ^2.11.8 + checksum: 10/f05183948b00b496400cc13df5798ecab7a85975e7d9a77b314a763b574a990aec0f1bbf1913c648a93b5d8cc82e73bc05f5ec1161d2932aad7ef7f316d9c82d + languageName: node + linkType: hard + "boxen@npm:^6.2.1": version: 6.2.1 resolution: "boxen@npm:6.2.1" @@ -8880,7 +8970,7 @@ __metadata: languageName: node linkType: hard -"commander@npm:^7.0.0, commander@npm:^7.1.0, commander@npm:^7.2.0": +"commander@npm:^7.0.0, commander@npm:^7.2.0": version: 7.2.0 resolution: "commander@npm:7.2.0" checksum: 10/9973af10727ad4b44f26703bf3e9fdc323528660a7590efe3aa9ad5042b4584c0deed84ba443f61c9d6f02dade54a5a5d3c95e306a1e1630f8374ae6db16c06d @@ -9554,10 +9644,10 @@ __metadata: languageName: node linkType: hard -"csstype@npm:^3.0.2": - version: 3.0.8 - resolution: "csstype@npm:3.0.8" - checksum: 10/498e58edf4327a9463c05634145a4529b9590488fc56ed802be41b6ef8e52ebd8ac53e6670e77147e0fb8aec0e52cc14870674e81ac095d7a1a69f08e5653203 +"csstype@npm:^3.0.2, csstype@npm:^3.0.7": + version: 3.1.3 + resolution: "csstype@npm:3.1.3" + checksum: 10/f593cce41ff5ade23f44e77521e3a1bcc2c64107041e1bf6c3c32adc5187d0d60983292fda326154d20b01079e24931aa5b08e4467cc488b60bb1e7f6d478ade languageName: node linkType: hard @@ -9730,6 +9820,13 @@ __metadata: languageName: node linkType: hard +"deep-object-diff@npm:^1.1.9": + version: 1.1.9 + resolution: "deep-object-diff@npm:1.1.9" + checksum: 10/b9771cc1ca08a34e408309eaab967bd2ab697684abdfa1262f4283ced8230a9ace966322f356364ff71a785c6e9cc356b7596582e900da5726e6b87d4b2a1463 + languageName: node + linkType: hard + "deepmerge@npm:^4.2.2": version: 4.2.2 resolution: "deepmerge@npm:4.2.2" @@ -10241,10 +10338,10 @@ __metadata: languageName: node linkType: hard -"electron-to-chromium@npm:^1.4.668, electron-to-chromium@npm:^1.4.687": - version: 1.4.687 - resolution: "electron-to-chromium@npm:1.4.687" - checksum: 10/a617b0c659a1717fa5315100d9dabf637bdf1dfd2d4eaca3e9e7710802e2a8561cd2bdf91fb5d6d9a6e94c7ba93c98745523f3828d990a9e6ac5a40639e11e41 +"electron-to-chromium@npm:^1.4.668, electron-to-chromium@npm:^1.4.689": + version: 1.4.689 + resolution: "electron-to-chromium@npm:1.4.689" + checksum: 10/a1267505d9bc78477ea89a44b81e3a4b116b27b3d1213510f66f8a71a9a5b61acf5d630dd1d5acdf3cb8a79ff7124da7834e8a0d2d073d5f3cb717776786eddc languageName: node linkType: hard @@ -10515,33 +10612,36 @@ __metadata: languageName: node linkType: hard -"esbuild@npm:^0.19.3": - version: 0.19.9 - resolution: "esbuild@npm:0.19.9" - dependencies: - "@esbuild/android-arm": "npm:0.19.9" - "@esbuild/android-arm64": "npm:0.19.9" - "@esbuild/android-x64": "npm:0.19.9" - "@esbuild/darwin-arm64": "npm:0.19.9" - "@esbuild/darwin-x64": "npm:0.19.9" - "@esbuild/freebsd-arm64": "npm:0.19.9" - "@esbuild/freebsd-x64": "npm:0.19.9" - "@esbuild/linux-arm": "npm:0.19.9" - "@esbuild/linux-arm64": "npm:0.19.9" - "@esbuild/linux-ia32": "npm:0.19.9" - "@esbuild/linux-loong64": "npm:0.19.9" - "@esbuild/linux-mips64el": "npm:0.19.9" - "@esbuild/linux-ppc64": "npm:0.19.9" - "@esbuild/linux-riscv64": "npm:0.19.9" - "@esbuild/linux-s390x": "npm:0.19.9" - "@esbuild/linux-x64": "npm:0.19.9" - "@esbuild/netbsd-x64": "npm:0.19.9" - "@esbuild/openbsd-x64": "npm:0.19.9" - "@esbuild/sunos-x64": "npm:0.19.9" - "@esbuild/win32-arm64": "npm:0.19.9" - "@esbuild/win32-ia32": "npm:0.19.9" - "@esbuild/win32-x64": "npm:0.19.9" +"esbuild@npm:^0.19.3, esbuild@npm:esbuild@~0.17.6 || ~0.18.0 || ~0.19.0": + version: 0.19.12 + resolution: "esbuild@npm:0.19.12" + dependencies: + "@esbuild/aix-ppc64": "npm:0.19.12" + "@esbuild/android-arm": "npm:0.19.12" + "@esbuild/android-arm64": "npm:0.19.12" + "@esbuild/android-x64": "npm:0.19.12" + "@esbuild/darwin-arm64": "npm:0.19.12" + "@esbuild/darwin-x64": "npm:0.19.12" + "@esbuild/freebsd-arm64": "npm:0.19.12" + "@esbuild/freebsd-x64": "npm:0.19.12" + "@esbuild/linux-arm": "npm:0.19.12" + "@esbuild/linux-arm64": "npm:0.19.12" + "@esbuild/linux-ia32": "npm:0.19.12" + "@esbuild/linux-loong64": "npm:0.19.12" + "@esbuild/linux-mips64el": "npm:0.19.12" + "@esbuild/linux-ppc64": "npm:0.19.12" + "@esbuild/linux-riscv64": "npm:0.19.12" + "@esbuild/linux-s390x": "npm:0.19.12" + "@esbuild/linux-x64": "npm:0.19.12" + "@esbuild/netbsd-x64": "npm:0.19.12" + "@esbuild/openbsd-x64": "npm:0.19.12" + "@esbuild/sunos-x64": "npm:0.19.12" + "@esbuild/win32-arm64": "npm:0.19.12" + "@esbuild/win32-ia32": "npm:0.19.12" + "@esbuild/win32-x64": "npm:0.19.12" dependenciesMeta: + "@esbuild/aix-ppc64": + optional: true "@esbuild/android-arm": optional: true "@esbuild/android-arm64": @@ -10588,7 +10688,7 @@ __metadata: optional: true bin: esbuild: bin/esbuild - checksum: 10/b76a6139954b4378aedd9a77c076d9a95ef7948192943266a35139745007650b8cbe0ce999cfdbea58ebf00412105430e09d42600f7de095eb2881643701aa29 + checksum: 10/861fa8eb2428e8d6521a4b7c7930139e3f45e8d51a86985cc29408172a41f6b18df7b3401e7e5e2d528cdf83742da601ddfdc77043ddc4f1c715a8ddb2d8a255 languageName: node linkType: hard @@ -11275,7 +11375,7 @@ __metadata: languageName: node linkType: hard -"eval@npm:^0.1.8": +"eval@npm:0.1.8, eval@npm:^0.1.8": version: 0.1.8 resolution: "eval@npm:0.1.8" dependencies: @@ -14422,6 +14522,13 @@ __metadata: languageName: node linkType: hard +"javascript-stringify@npm:^2.0.1": + version: 2.1.0 + resolution: "javascript-stringify@npm:2.1.0" + checksum: 10/721236ccec826c77167fec024b9ea1da7462690cf857bebfcc67a6fb346392d45cdce278e25e86b312ddeecdab1678a0f9fcc7f2c6e2883fbaaac3c735a237fd + languageName: node + linkType: hard + "jest-618f12@workspace:scenarios/jest": version: 0.0.0-use.local resolution: "jest-618f12@workspace:scenarios/jest" @@ -16341,6 +16448,15 @@ __metadata: languageName: node linkType: hard +"media-query-parser@npm:^2.0.2": + version: 2.0.2 + resolution: "media-query-parser@npm:2.0.2" + dependencies: + "@babel/runtime": "npm:^7.12.5" + checksum: 10/9dff3ed135149944717a8687567f4fda1d39d28637f265c6ce7efe5ed55cd88ed49136c912ee0c7f3a6e5debc50b1ff969db609d862318f1af97f48752b08b0b + languageName: node + linkType: hard + "media-typer@npm:0.3.0": version: 0.3.0 resolution: "media-typer@npm:0.3.0" @@ -17249,6 +17365,13 @@ __metadata: languageName: node linkType: hard +"modern-ahocorasick@npm:^1.0.0": + version: 1.0.1 + resolution: "modern-ahocorasick@npm:1.0.1" + checksum: 10/ec83479f406511f37a966d66ce1c2b1701bb4a2cc2aabbbc257001178c9fbc48ce748c88eb10dfe72ba8b7f991a0bc7f1fa14683f444685edd1a9eeb32ecbc1e + languageName: node + linkType: hard + "modify-values@npm:^1.0.1": version: 1.0.1 resolution: "modify-values@npm:1.0.1" @@ -18341,6 +18464,13 @@ __metadata: languageName: node linkType: hard +"outdent@npm:^0.8.0": + version: 0.8.0 + resolution: "outdent@npm:0.8.0" + checksum: 10/a556c5c308705ad4e3441be435f2b2cf014cb5f9753a24cbd080eadc473b988c77d0d529a6a9a57c3931fb4178e5a81d668cc4bc49892b668191a5d0ba3df76e + languageName: node + linkType: hard + "p-cancelable@npm:^2.0.0": version: 2.1.1 resolution: "p-cancelable@npm:2.1.1" @@ -18554,14 +18684,16 @@ __metadata: "@babel/core": "npm:^7.24.0" "@moonrepo/cli": "npm:^1.22.2" "@moonrepo/dev": "npm:^2.0.1" - "@swc/cli": "npm:^0.3.9" + "@swc/cli": "npm:^0.3.10" "@types/micromatch": "npm:^4.0.6" - "@types/node": "npm:^16.18.85" - "@types/react": "npm:^18.2.60" + "@types/node": "npm:^16.18.86" + "@types/react": "npm:^18.2.61" "@types/semver": "npm:^7.5.8" + "@vanilla-extract/rollup-plugin": "npm:^1.3.4" babel-preset-moon: "npm:^2.0.15" + bootstrap: "npm:^5.3.3" chokidar: "npm:^3.6.0" - electron-to-chromium: "npm:^1.4.687" + electron-to-chromium: "npm:^1.4.689" eslint: "npm:^8.57.0" eslint-config-moon: "npm:^2.1.2" lerna: "npm:^8.1.2" @@ -23621,7 +23753,7 @@ __metadata: languageName: unknown linkType: soft -"vite-node@npm:1.3.1": +"vite-node@npm:1.3.1, vite-node@npm:^1.2.0": version: 1.3.1 resolution: "vite-node@npm:1.3.1" dependencies: @@ -23636,7 +23768,7 @@ __metadata: languageName: node linkType: hard -"vite@npm:^5.0.0, vite@npm:^5.1.4": +"vite@npm:^5.0.0, vite@npm:^5.0.11, vite@npm:^5.1.4": version: 5.1.4 resolution: "vite@npm:5.1.4" dependencies: