boss-css 0.0.22 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +14 -24
- package/dist/_virtual/_rolldown/runtime.mjs +14 -0
- package/dist/ai/server.cjs +15 -16
- package/dist/ai/server.mjs +4 -6
- package/dist/ai/skills.cjs +2 -3
- package/dist/ai/skills.mjs +1 -2
- package/dist/api/browser.cjs +11 -12
- package/dist/api/browser.mjs +1 -3
- package/dist/api/config.cjs +6 -7
- package/dist/api/config.mjs +1 -3
- package/dist/api/css.cjs +1 -3
- package/dist/api/css.mjs +1 -2
- package/dist/api/dictionary.cjs +1 -3
- package/dist/api/dictionary.mjs +1 -2
- package/dist/api/file/dts.cjs +2 -4
- package/dist/api/file/dts.mjs +1 -3
- package/dist/api/file/file.cjs +4 -6
- package/dist/api/file/file.mjs +1 -3
- package/dist/api/file/js.cjs +6 -8
- package/dist/api/file/js.mjs +2 -4
- package/dist/api/file/text.cjs +2 -4
- package/dist/api/file/text.mjs +1 -3
- package/dist/api/names.cjs +1 -3
- package/dist/api/names.mjs +1 -3
- package/dist/api/noopCss.cjs +2 -3
- package/dist/api/noopCss.mjs +1 -2
- package/dist/api/propTree.cjs +1 -3
- package/dist/api/propTree.mjs +1 -2
- package/dist/api/server.cjs +15 -16
- package/dist/api/server.mjs +1 -3
- package/dist/cli/build.cjs +1 -1
- package/dist/cli/build.mjs +2 -3
- package/dist/cli/index.cjs +5 -7
- package/dist/cli/index.mjs +1 -3
- package/dist/cli/tasks/build.cjs +4 -7
- package/dist/cli/tasks/build.mjs +1 -4
- package/dist/cli/tasks/choose.cjs +3 -6
- package/dist/cli/tasks/choose.mjs +1 -4
- package/dist/cli/tasks/compile.cjs +3 -6
- package/dist/cli/tasks/compile.mjs +1 -4
- package/dist/cli/tasks/dev.cjs +8 -11
- package/dist/cli/tasks/dev.mjs +2 -5
- package/dist/cli/tasks/init.cjs +39 -42
- package/dist/cli/tasks/init.mjs +12 -15
- package/dist/cli/tasks/watch.cjs +3 -6
- package/dist/cli/tasks/watch.mjs +1 -4
- package/dist/cli/templates/init.cjs +1 -3
- package/dist/cli/templates/init.mjs +1 -2
- package/dist/cli/types.cjs +2 -4
- package/dist/cli/types.mjs +2 -4
- package/dist/cli/utils.cjs +2 -4
- package/dist/cli/utils.mjs +1 -3
- package/dist/compile/classname-strategy.cjs +3 -5
- package/dist/compile/classname-strategy.mjs +1 -3
- package/dist/compile/classname.cjs +6 -8
- package/dist/compile/classname.mjs +5 -7
- package/dist/compile/index.cjs +18 -20
- package/dist/compile/index.mjs +6 -8
- package/dist/compile/jsx.cjs +8 -10
- package/dist/compile/jsx.mjs +6 -8
- package/dist/compile/prepared.cjs +3 -5
- package/dist/compile/prepared.mjs +1 -3
- package/dist/compile/runtime.cjs +4 -5
- package/dist/compile/runtime.mjs +1 -3
- package/dist/compile/transform.cjs +7 -9
- package/dist/compile/transform.mjs +3 -5
- package/dist/cx/index.cjs +6 -7
- package/dist/cx/index.mjs +3 -5
- package/dist/detect-fw/index.cjs +6 -7
- package/dist/detect-fw/index.mjs +1 -3
- package/dist/dev/client.cjs +2 -3
- package/dist/dev/client.mjs +1 -2
- package/dist/dev/plugin/browser.cjs +2 -3
- package/dist/dev/plugin/browser.mjs +1 -2
- package/dist/dev/plugin/server.cjs +13 -14
- package/dist/dev/plugin/server.mjs +3 -5
- package/dist/dev/port.cjs +3 -5
- package/dist/dev/port.mjs +1 -3
- package/dist/dev/runtime.cjs +3 -5
- package/dist/dev/runtime.mjs +1 -3
- package/dist/dev/server.cjs +12 -13
- package/dist/dev/server.mjs +15 -17
- package/dist/dev/shared.cjs +1 -3
- package/dist/dev/shared.mjs +1 -2
- package/dist/devtools-app/index.mjs +2 -2
- package/dist/eslint-plugin/index.cjs +10 -13
- package/dist/eslint-plugin/index.mjs +1 -4
- package/dist/eslint-plugin/rules/classnames-only.cjs +4 -6
- package/dist/eslint-plugin/rules/classnames-only.mjs +1 -3
- package/dist/eslint-plugin/rules/format-classnames.cjs +8 -10
- package/dist/eslint-plugin/rules/format-classnames.mjs +1 -3
- package/dist/eslint-plugin/rules/no-unknown-classes.cjs +5 -7
- package/dist/eslint-plugin/rules/no-unknown-classes.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-classnames.cjs +5 -7
- package/dist/eslint-plugin/rules/prefer-classnames.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-token-values.cjs +6 -8
- package/dist/eslint-plugin/rules/prefer-token-values.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-unitless-values.cjs +7 -9
- package/dist/eslint-plugin/rules/prefer-unitless-values.mjs +1 -3
- package/dist/eslint-plugin/rules/props-only.cjs +5 -7
- package/dist/eslint-plugin/rules/props-only.mjs +1 -3
- package/dist/eslint-plugin/rules/redundant-cx.cjs +3 -5
- package/dist/eslint-plugin/rules/redundant-cx.mjs +1 -3
- package/dist/eslint-plugin/rules/require-prop-functions.cjs +6 -8
- package/dist/eslint-plugin/rules/require-prop-functions.mjs +1 -3
- package/dist/eslint-plugin/utils/api.cjs +3 -5
- package/dist/eslint-plugin/utils/api.mjs +1 -3
- package/dist/eslint-plugin/utils/ast.cjs +1 -3
- package/dist/eslint-plugin/utils/ast.mjs +1 -2
- package/dist/eslint-plugin/utils/boss-classes.cjs +5 -7
- package/dist/eslint-plugin/utils/boss-classes.mjs +1 -3
- package/dist/eslint-plugin/utils/context.cjs +1 -3
- package/dist/eslint-plugin/utils/context.mjs +1 -2
- package/dist/eslint-plugin/utils/defaults.cjs +1 -3
- package/dist/eslint-plugin/utils/defaults.mjs +1 -2
- package/dist/eslint-plugin/utils/format.cjs +1 -3
- package/dist/eslint-plugin/utils/format.mjs +1 -2
- package/dist/eslint-plugin/utils/order.cjs +3 -5
- package/dist/eslint-plugin/utils/order.mjs +1 -3
- package/dist/eslint-plugin/utils/property-order.cjs +1 -3
- package/dist/eslint-plugin/utils/property-order.mjs +1 -2
- package/dist/eslint-plugin/utils/static.cjs +1 -3
- package/dist/eslint-plugin/utils/static.mjs +1 -2
- package/dist/fontsource/directory.cjs +1 -3
- package/dist/fontsource/directory.mjs +1 -2
- package/dist/fontsource/server.cjs +12 -13
- package/dist/fontsource/server.mjs +2 -4
- package/dist/index.cjs +6 -6
- package/dist/index.mjs +1 -2
- package/dist/log/browser.cjs +2 -4
- package/dist/log/browser.mjs +1 -3
- package/dist/log/server.cjs +6 -8
- package/dist/log/server.mjs +1 -3
- package/dist/merge/index.cjs +21 -284
- package/dist/merge/index.mjs +18 -282
- package/dist/native/browser.cjs +3 -4
- package/dist/native/browser.mjs +1 -3
- package/dist/native/server.cjs +7 -8
- package/dist/native/server.mjs +1 -3
- package/dist/native/styleTypes.cjs +5 -7
- package/dist/native/styleTypes.mjs +1 -3
- package/dist/parser/classname/server.cjs +17 -19
- package/dist/parser/classname/server.mjs +11 -13
- package/dist/parser/jsx/browser.cjs +7 -8
- package/dist/parser/jsx/browser.mjs +1 -3
- package/dist/parser/jsx/extractCode.cjs +2 -4
- package/dist/parser/jsx/extractCode.mjs +2 -3
- package/dist/parser/jsx/extractPrepared.cjs +3 -5
- package/dist/parser/jsx/extractPrepared.mjs +1 -3
- package/dist/parser/jsx/extractProps.cjs +3 -5
- package/dist/parser/jsx/extractProps.mjs +1 -3
- package/dist/parser/jsx/isDOMProp.cjs +3 -5
- package/dist/parser/jsx/isDOMProp.mjs +1 -3
- package/dist/parser/jsx/native.cjs +6 -7
- package/dist/parser/jsx/native.d.cts +2 -2
- package/dist/parser/jsx/native.d.mts +2 -2
- package/dist/parser/jsx/native.mjs +1 -3
- package/dist/parser/jsx/runtime.cjs +3 -3
- package/dist/parser/jsx/runtime.mjs +1 -2
- package/dist/parser/jsx/server.cjs +16 -17
- package/dist/parser/jsx/server.mjs +3 -5
- package/dist/postcss/index.cjs +2 -5
- package/dist/postcss/index.mjs +1 -4
- package/dist/prop/at/runtime-only.cjs +8 -9
- package/dist/prop/at/runtime-only.mjs +6 -8
- package/dist/prop/at/server.cjs +27 -28
- package/dist/prop/at/server.mjs +17 -19
- package/dist/prop/at/shared.cjs +1 -3
- package/dist/prop/at/shared.mjs +1 -2
- package/dist/prop/bosswind/browser.cjs +4 -5
- package/dist/prop/bosswind/browser.mjs +1 -3
- package/dist/prop/bosswind/runtime-only.cjs +4 -5
- package/dist/prop/bosswind/runtime-only.mjs +1 -3
- package/dist/prop/bosswind/selectors.cjs +1 -3
- package/dist/prop/bosswind/selectors.mjs +1 -2
- package/dist/prop/bosswind/server.cjs +12 -12
- package/dist/prop/bosswind/server.mjs +6 -7
- package/dist/prop/bosswind/shared.cjs +59 -9
- package/dist/prop/bosswind/shared.mjs +57 -8
- package/dist/prop/bosswind/tailwind-theme.cjs +2 -38
- package/dist/prop/bosswind/tailwind-theme.mjs +2 -37
- package/dist/prop/child/runtime-only.cjs +2 -3
- package/dist/prop/child/runtime-only.mjs +1 -2
- package/dist/prop/child/server.cjs +10 -11
- package/dist/prop/child/server.mjs +2 -4
- package/dist/prop/css/getDtsTemplate.cjs +7 -6
- package/dist/prop/css/getDtsTemplate.mjs +5 -4
- package/dist/prop/css/runtime-only.cjs +4 -5
- package/dist/prop/css/runtime-only.mjs +1 -3
- package/dist/prop/css/server.cjs +12 -13
- package/dist/prop/css/server.mjs +4 -6
- package/dist/prop/pseudo/runtime-only.cjs +3 -5
- package/dist/prop/pseudo/runtime-only.mjs +1 -3
- package/dist/prop/pseudo/server.cjs +19 -20
- package/dist/prop/pseudo/server.mjs +11 -13
- package/dist/prop/pseudo/shared.cjs +1 -3
- package/dist/prop/pseudo/shared.mjs +1 -2
- package/dist/reset/server.cjs +10 -11
- package/dist/reset/server.mjs +2 -4
- package/dist/runtime/index.cjs +5 -6
- package/dist/runtime/index.mjs +1 -3
- package/dist/runtime/preact.cjs +3 -3
- package/dist/runtime/preact.mjs +1 -2
- package/dist/runtime/qwik.cjs +3 -4
- package/dist/runtime/qwik.mjs +1 -3
- package/dist/runtime/react.cjs +3 -3
- package/dist/runtime/react.mjs +1 -2
- package/dist/runtime/solid.cjs +3 -4
- package/dist/runtime/solid.mjs +1 -3
- package/dist/runtime/stencil.cjs +4 -5
- package/dist/runtime/stencil.mjs +1 -3
- package/dist/runtime/style.cjs +2 -3
- package/dist/runtime/style.mjs +1 -2
- package/dist/shared/boundaries.cjs +4 -6
- package/dist/shared/boundaries.mjs +1 -3
- package/dist/shared/customCss.cjs +1 -3
- package/dist/shared/customCss.mjs +1 -2
- package/dist/shared/debug.cjs +2 -4
- package/dist/shared/debug.mjs +2 -3
- package/dist/shared/file.cjs +3 -5
- package/dist/shared/file.mjs +1 -3
- package/dist/shared/framework.cjs +1 -3
- package/dist/shared/framework.mjs +1 -2
- package/dist/shared/json.cjs +1 -3
- package/dist/shared/json.mjs +1 -2
- package/dist/shared/types.cjs +1 -3
- package/dist/shared/types.mjs +1 -2
- package/dist/strategy/classic/runtime-only.cjs +15 -16
- package/dist/strategy/classic/runtime-only.mjs +3 -5
- package/dist/strategy/classname-first/browser.cjs +7 -8
- package/dist/strategy/classname-first/browser.mjs +1 -3
- package/dist/strategy/classname-first/runtime-only.cjs +13 -14
- package/dist/strategy/classname-first/runtime-only.mjs +1 -3
- package/dist/strategy/classname-first/server.cjs +9 -11
- package/dist/strategy/classname-first/server.mjs +3 -5
- package/dist/strategy/classname-only/server.cjs +8 -10
- package/dist/strategy/classname-only/server.mjs +2 -4
- package/dist/strategy/inline-first/browser.cjs +6 -7
- package/dist/strategy/inline-first/browser.mjs +1 -3
- package/dist/strategy/inline-first/runtime-only.cjs +12 -13
- package/dist/strategy/inline-first/runtime-only.mjs +1 -3
- package/dist/strategy/inline-first/server.cjs +9 -11
- package/dist/strategy/inline-first/server.mjs +3 -5
- package/dist/strategy/runtime/runtime-only.cjs +6 -8
- package/dist/strategy/runtime/runtime-only.mjs +1 -4
- package/dist/strategy/runtime/server.cjs +11 -12
- package/dist/strategy/runtime/server.mjs +2 -4
- package/dist/strategy/runtime-only/css.cjs +5 -6
- package/dist/strategy/runtime-only/css.mjs +4 -5
- package/dist/tasks/build.cjs +8 -10
- package/dist/tasks/build.mjs +1 -3
- package/dist/tasks/compile.cjs +2 -4
- package/dist/tasks/compile.mjs +1 -3
- package/dist/tasks/postcss.cjs +11 -13
- package/dist/tasks/postcss.mjs +1 -3
- package/dist/tasks/session.cjs +4 -6
- package/dist/tasks/session.mjs +1 -3
- package/dist/tasks/watch.cjs +7 -9
- package/dist/tasks/watch.mjs +1 -3
- package/dist/transform/cache.cjs +1 -3
- package/dist/transform/cache.mjs +1 -2
- package/dist/transform/processFile.cjs +4 -6
- package/dist/transform/processFile.mjs +1 -3
- package/dist/use/token/browser.cjs +4 -5
- package/dist/use/token/browser.mjs +1 -3
- package/dist/use/token/normalize.cjs +1 -3
- package/dist/use/token/normalize.mjs +1 -2
- package/dist/use/token/propMap.cjs +1 -3
- package/dist/use/token/propMap.mjs +1 -2
- package/dist/use/token/runtime-only.cjs +5 -6
- package/dist/use/token/runtime-only.mjs +1 -3
- package/dist/use/token/server.cjs +13 -14
- package/dist/use/token/server.mjs +4 -6
- package/dist/use/token/vars.cjs +2 -4
- package/dist/use/token/vars.mjs +1 -3
- package/package.json +23 -23
- package/dist/_virtual/rolldown_runtime.mjs +0 -20
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { parseSync, printSync } from "@swc/core";
|
|
2
|
-
|
|
3
2
|
//#region src/compile/classname.ts
|
|
4
3
|
const tokenPrefix = "$$.token.";
|
|
5
4
|
const rewriteClassNameTokens = (input) => {
|
|
@@ -106,11 +105,11 @@ const isClassAttribute = (attr, classNameProp) => {
|
|
|
106
105
|
const rewriteSelector = (selector, options) => {
|
|
107
106
|
const grouped = parseGroupedSelector(selector);
|
|
108
107
|
if (grouped) {
|
|
109
|
-
const nextEntries = grouped.entries.map((entry
|
|
110
|
-
name: entry
|
|
111
|
-
rawValue: rewriteTokenValue(entry
|
|
108
|
+
const nextEntries = grouped.entries.map((entry) => ({
|
|
109
|
+
name: entry.name,
|
|
110
|
+
rawValue: rewriteTokenValue(entry.rawValue)
|
|
112
111
|
}));
|
|
113
|
-
if (nextEntries.length > 1 || options.expandSingleGroup) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry
|
|
112
|
+
if (nextEntries.length > 1 || options.expandSingleGroup) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry) => `${grouped.prefix}:${entry.name}:${entry.rawValue}`);
|
|
114
113
|
const [entry] = nextEntries;
|
|
115
114
|
return [`${grouped.prefix}:{${entry.name}:${entry.rawValue}}`];
|
|
116
115
|
}
|
|
@@ -355,6 +354,5 @@ const rewriteQuotedSegments = (input, rewrite) => {
|
|
|
355
354
|
}
|
|
356
355
|
return output;
|
|
357
356
|
};
|
|
358
|
-
|
|
359
357
|
//#endregion
|
|
360
|
-
export { collectBossClassTokensInSource, collectBossClassTokensInText, rewriteClassNameTokensInElement, rewriteClassNameTokensInSource, rewriteClassNameTokensInText, rewriteClassNameTokensWithMap };
|
|
358
|
+
export { collectBossClassTokensInSource, collectBossClassTokensInText, rewriteClassNameTokensInElement, rewriteClassNameTokensInSource, rewriteClassNameTokensInText, rewriteClassNameTokensWithMap };
|
package/dist/compile/index.cjs
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_api_server = require(
|
|
3
|
-
const require_file = require(
|
|
4
|
-
const require_boundaries = require(
|
|
5
|
-
const require_session = require(
|
|
6
|
-
const require_framework = require(
|
|
7
|
-
const require_classname = require(
|
|
8
|
-
const require_classname_strategy = require(
|
|
9
|
-
const require_prepared = require(
|
|
10
|
-
const require_transform = require(
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_api_server = require("../api/server.cjs");
|
|
3
|
+
const require_file = require("../shared/file.cjs");
|
|
4
|
+
const require_boundaries = require("../shared/boundaries.cjs");
|
|
5
|
+
const require_session = require("../tasks/session.cjs");
|
|
6
|
+
const require_framework = require("../shared/framework.cjs");
|
|
7
|
+
const require_classname = require("./classname.cjs");
|
|
8
|
+
const require_classname_strategy = require("./classname-strategy.cjs");
|
|
9
|
+
const require_prepared = require("./prepared.cjs");
|
|
10
|
+
const require_transform = require("./transform.cjs");
|
|
11
11
|
let node_fs_promises = require("node:fs/promises");
|
|
12
|
-
node_fs_promises =
|
|
12
|
+
node_fs_promises = require_runtime.__toESM(node_fs_promises);
|
|
13
13
|
let node_path = require("node:path");
|
|
14
|
-
node_path =
|
|
14
|
+
node_path = require_runtime.__toESM(node_path);
|
|
15
15
|
let lightningcss = require("lightningcss");
|
|
16
|
-
|
|
17
16
|
//#region src/compile/index.ts
|
|
18
17
|
const supportedExtensions = new Set([
|
|
19
18
|
".js",
|
|
@@ -206,13 +205,13 @@ async function compileProject(options) {
|
|
|
206
205
|
stylesheetPath = globalOutput?.path ?? globalOutputPath;
|
|
207
206
|
}
|
|
208
207
|
const durationMs = Number(process.hrtime.bigint() - start) / 1e6;
|
|
209
|
-
const runtimeFiles = fileResults.filter((result
|
|
210
|
-
const valueHelperFiles = fileResults.filter((result
|
|
211
|
-
const filesProcessed = fileResults.filter((result
|
|
212
|
-
const filesCopied = fileResults.filter((result
|
|
208
|
+
const runtimeFiles = fileResults.filter((result) => result.needsRuntime).map((result) => result.file);
|
|
209
|
+
const valueHelperFiles = fileResults.filter((result) => result.needsValueHelper).map((result) => result.file);
|
|
210
|
+
const filesProcessed = fileResults.filter((result) => result.processed).length;
|
|
211
|
+
const filesCopied = fileResults.filter((result) => result.copied).length;
|
|
213
212
|
const filesTotal = fileResults.length;
|
|
214
213
|
const filesSkipped = filesTotal - filesProcessed - filesCopied;
|
|
215
|
-
const elementsReplaced = fileResults.reduce((total, result
|
|
214
|
+
const elementsReplaced = fileResults.reduce((total, result) => total + result.replacedElements, 0);
|
|
216
215
|
const result = {
|
|
217
216
|
statsMode,
|
|
218
217
|
stats: {
|
|
@@ -235,6 +234,5 @@ async function compileProject(options) {
|
|
|
235
234
|
await require_session.emitSession(api, await require_session.resolveSessionPayload(baseDir, config, "compile", "stop"));
|
|
236
235
|
return result;
|
|
237
236
|
}
|
|
238
|
-
|
|
239
237
|
//#endregion
|
|
240
|
-
exports.compileProject = compileProject;
|
|
238
|
+
exports.compileProject = compileProject;
|
package/dist/compile/index.mjs
CHANGED
|
@@ -10,7 +10,6 @@ import { transformSource } from "./transform.mjs";
|
|
|
10
10
|
import fs from "node:fs/promises";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import { transform } from "lightningcss";
|
|
13
|
-
|
|
14
13
|
//#region src/compile/index.ts
|
|
15
14
|
const supportedExtensions = new Set([
|
|
16
15
|
".js",
|
|
@@ -203,13 +202,13 @@ async function compileProject(options) {
|
|
|
203
202
|
stylesheetPath = globalOutput?.path ?? globalOutputPath;
|
|
204
203
|
}
|
|
205
204
|
const durationMs = Number(process.hrtime.bigint() - start) / 1e6;
|
|
206
|
-
const runtimeFiles = fileResults.filter((result
|
|
207
|
-
const valueHelperFiles = fileResults.filter((result
|
|
208
|
-
const filesProcessed = fileResults.filter((result
|
|
209
|
-
const filesCopied = fileResults.filter((result
|
|
205
|
+
const runtimeFiles = fileResults.filter((result) => result.needsRuntime).map((result) => result.file);
|
|
206
|
+
const valueHelperFiles = fileResults.filter((result) => result.needsValueHelper).map((result) => result.file);
|
|
207
|
+
const filesProcessed = fileResults.filter((result) => result.processed).length;
|
|
208
|
+
const filesCopied = fileResults.filter((result) => result.copied).length;
|
|
210
209
|
const filesTotal = fileResults.length;
|
|
211
210
|
const filesSkipped = filesTotal - filesProcessed - filesCopied;
|
|
212
|
-
const elementsReplaced = fileResults.reduce((total, result
|
|
211
|
+
const elementsReplaced = fileResults.reduce((total, result) => total + result.replacedElements, 0);
|
|
213
212
|
const result = {
|
|
214
213
|
statsMode,
|
|
215
214
|
stats: {
|
|
@@ -232,6 +231,5 @@ async function compileProject(options) {
|
|
|
232
231
|
await emitSession(api, await resolveSessionPayload(baseDir, config, "compile", "stop"));
|
|
233
232
|
return result;
|
|
234
233
|
}
|
|
235
|
-
|
|
236
234
|
//#endregion
|
|
237
|
-
export { compileProject };
|
|
235
|
+
export { compileProject };
|
package/dist/compile/jsx.cjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const require_vars = require(
|
|
1
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_vars = require("../use/token/vars.cjs");
|
|
3
3
|
let _swc_core = require("@swc/core");
|
|
4
|
-
|
|
5
4
|
//#region src/compile/jsx.ts
|
|
6
5
|
const preservedAttrs = new Set(["key", "ref"]);
|
|
7
6
|
const fallbackSpan = {
|
|
@@ -199,15 +198,15 @@ const buildPropTree = async (attributes, asAttribute, state, classNameProp, tag,
|
|
|
199
198
|
if (!name) continue;
|
|
200
199
|
if (name === "style" || preservedAttrs.has(name) || name === classNameProp) continue;
|
|
201
200
|
if (name === "tokens") {
|
|
202
|
-
const parsed
|
|
203
|
-
if (parsed
|
|
201
|
+
const parsed = parseAttributeValue(attr.value);
|
|
202
|
+
if (parsed) tokensProp = tokensProp ? mergePropValues(tokensProp, parsed) : parsed;
|
|
204
203
|
continue;
|
|
205
204
|
}
|
|
206
205
|
if (!state.api.dictionary.resolve(name).descriptor) {
|
|
207
|
-
const parsed
|
|
208
|
-
const compileAttrs = parsed
|
|
206
|
+
const parsed = parseAttributeValue(attr.value);
|
|
207
|
+
const compileAttrs = parsed ? await applyCompileProp({
|
|
209
208
|
name,
|
|
210
|
-
parsed
|
|
209
|
+
parsed,
|
|
211
210
|
attr,
|
|
212
211
|
state,
|
|
213
212
|
tag
|
|
@@ -870,8 +869,7 @@ const wrapDynamicAs = (node, asExpression, span, context) => {
|
|
|
870
869
|
};
|
|
871
870
|
return iife;
|
|
872
871
|
};
|
|
873
|
-
|
|
874
872
|
//#endregion
|
|
875
873
|
exports.buildPreparedDefinition = buildPreparedDefinition;
|
|
876
874
|
exports.isPreparedDefinitionStatic = isPreparedDefinitionStatic;
|
|
877
|
-
exports.transformJsxElement = transformJsxElement;
|
|
875
|
+
exports.transformJsxElement = transformJsxElement;
|
package/dist/compile/jsx.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createTokenVars } from "../use/token/vars.mjs";
|
|
2
2
|
import { printSync } from "@swc/core";
|
|
3
|
-
|
|
4
3
|
//#region src/compile/jsx.ts
|
|
5
4
|
const preservedAttrs = new Set(["key", "ref"]);
|
|
6
5
|
const fallbackSpan = {
|
|
@@ -198,15 +197,15 @@ const buildPropTree = async (attributes, asAttribute, state, classNameProp, tag,
|
|
|
198
197
|
if (!name) continue;
|
|
199
198
|
if (name === "style" || preservedAttrs.has(name) || name === classNameProp) continue;
|
|
200
199
|
if (name === "tokens") {
|
|
201
|
-
const parsed
|
|
202
|
-
if (parsed
|
|
200
|
+
const parsed = parseAttributeValue(attr.value);
|
|
201
|
+
if (parsed) tokensProp = tokensProp ? mergePropValues(tokensProp, parsed) : parsed;
|
|
203
202
|
continue;
|
|
204
203
|
}
|
|
205
204
|
if (!state.api.dictionary.resolve(name).descriptor) {
|
|
206
|
-
const parsed
|
|
207
|
-
const compileAttrs = parsed
|
|
205
|
+
const parsed = parseAttributeValue(attr.value);
|
|
206
|
+
const compileAttrs = parsed ? await applyCompileProp({
|
|
208
207
|
name,
|
|
209
|
-
parsed
|
|
208
|
+
parsed,
|
|
210
209
|
attr,
|
|
211
210
|
state,
|
|
212
211
|
tag
|
|
@@ -869,6 +868,5 @@ const wrapDynamicAs = (node, asExpression, span, context) => {
|
|
|
869
868
|
};
|
|
870
869
|
return iife;
|
|
871
870
|
};
|
|
872
|
-
|
|
873
871
|
//#endregion
|
|
874
|
-
export { buildPreparedDefinition, isPreparedDefinitionStatic, transformJsxElement };
|
|
872
|
+
export { buildPreparedDefinition, isPreparedDefinitionStatic, transformJsxElement };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const require_jsx = require(
|
|
1
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_jsx = require("./jsx.cjs");
|
|
3
3
|
let _swc_core = require("@swc/core");
|
|
4
|
-
|
|
5
4
|
//#region src/compile/prepared.ts
|
|
6
5
|
function scanPrepared(source, options) {
|
|
7
6
|
const parsed = (0, _swc_core.parseSync)(source, {
|
|
@@ -83,6 +82,5 @@ const getPreparedObjectExpression = (expression) => {
|
|
|
83
82
|
}
|
|
84
83
|
return null;
|
|
85
84
|
};
|
|
86
|
-
|
|
87
85
|
//#endregion
|
|
88
|
-
exports.scanPrepared = scanPrepared;
|
|
86
|
+
exports.scanPrepared = scanPrepared;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { buildPreparedDefinition, isPreparedDefinitionStatic } from "./jsx.mjs";
|
|
2
2
|
import { parseSync } from "@swc/core";
|
|
3
|
-
|
|
4
3
|
//#region src/compile/prepared.ts
|
|
5
4
|
function scanPrepared(source, options) {
|
|
6
5
|
const parsed = parseSync(source, {
|
|
@@ -82,6 +81,5 @@ const getPreparedObjectExpression = (expression) => {
|
|
|
82
81
|
}
|
|
83
82
|
return null;
|
|
84
83
|
};
|
|
85
|
-
|
|
86
84
|
//#endregion
|
|
87
|
-
export { scanPrepared };
|
|
85
|
+
export { scanPrepared };
|
package/dist/compile/runtime.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_dictionary = require("../api/dictionary.cjs");
|
|
3
|
+
const require_vars = require("../use/token/vars.cjs");
|
|
4
4
|
//#region src/compile/runtime.ts
|
|
5
5
|
const createBossValue = (unit) => {
|
|
6
6
|
return (value) => {
|
|
@@ -27,7 +27,6 @@ const createBossTokenVars = (unit, prefix = "") => {
|
|
|
27
27
|
});
|
|
28
28
|
return (input) => builder(input);
|
|
29
29
|
};
|
|
30
|
-
|
|
31
30
|
//#endregion
|
|
32
31
|
exports.createBossTokenVars = createBossTokenVars;
|
|
33
|
-
exports.createBossValue = createBossValue;
|
|
32
|
+
exports.createBossValue = createBossValue;
|
package/dist/compile/runtime.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { isNumericValue, unitlessProperties } from "../api/dictionary.mjs";
|
|
2
2
|
import { createTokenVars } from "../use/token/vars.mjs";
|
|
3
|
-
|
|
4
3
|
//#region src/compile/runtime.ts
|
|
5
4
|
const createBossValue = (unit) => {
|
|
6
5
|
return (value) => {
|
|
@@ -27,6 +26,5 @@ const createBossTokenVars = (unit, prefix = "") => {
|
|
|
27
26
|
});
|
|
28
27
|
return (input) => builder(input);
|
|
29
28
|
};
|
|
30
|
-
|
|
31
29
|
//#endregion
|
|
32
|
-
export { createBossTokenVars, createBossValue };
|
|
30
|
+
export { createBossTokenVars, createBossValue };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_framework = require(
|
|
3
|
-
const require_classname = require(
|
|
4
|
-
const require_jsx = require(
|
|
5
|
-
const require_customCss = require(
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_framework = require("../shared/framework.cjs");
|
|
3
|
+
const require_classname = require("./classname.cjs");
|
|
4
|
+
const require_jsx = require("./jsx.cjs");
|
|
5
|
+
const require_customCss = require("../shared/customCss.cjs");
|
|
6
6
|
let node_path = require("node:path");
|
|
7
|
-
node_path =
|
|
7
|
+
node_path = require_runtime.__toESM(node_path);
|
|
8
8
|
let _swc_core = require("@swc/core");
|
|
9
|
-
|
|
10
9
|
//#region src/compile/transform.ts
|
|
11
10
|
const jsxExtensions = new Set([
|
|
12
11
|
".jsx",
|
|
@@ -402,6 +401,5 @@ const getPreparedObjectExpression = (expression) => {
|
|
|
402
401
|
}
|
|
403
402
|
return null;
|
|
404
403
|
};
|
|
405
|
-
|
|
406
404
|
//#endregion
|
|
407
|
-
exports.transformSource = transformSource;
|
|
405
|
+
exports.transformSource = transformSource;
|
|
@@ -4,7 +4,6 @@ import { buildPreparedDefinition, transformJsxElement } from "./jsx.mjs";
|
|
|
4
4
|
import { extractCustomCssText } from "../shared/customCss.mjs";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { parseSync, printSync } from "@swc/core";
|
|
7
|
-
|
|
8
7
|
//#region src/compile/transform.ts
|
|
9
8
|
const jsxExtensions = new Set([
|
|
10
9
|
".jsx",
|
|
@@ -33,8 +32,8 @@ const createStringLiteral = (value, span) => ({
|
|
|
33
32
|
value,
|
|
34
33
|
raw: JSON.stringify(value)
|
|
35
34
|
});
|
|
36
|
-
const tokenPathToVar = (path
|
|
37
|
-
return `var(--${prefix}${path
|
|
35
|
+
const tokenPathToVar = (path, prefix) => {
|
|
36
|
+
return `var(--${prefix}${path.replace(/\./g, "-")})`;
|
|
38
37
|
};
|
|
39
38
|
const getTokenPathFromMemberExpression = (expression) => {
|
|
40
39
|
const parts = [];
|
|
@@ -400,6 +399,5 @@ const getPreparedObjectExpression = (expression) => {
|
|
|
400
399
|
}
|
|
401
400
|
return null;
|
|
402
401
|
};
|
|
403
|
-
|
|
404
402
|
//#endregion
|
|
405
|
-
export { transformSource };
|
|
403
|
+
export { transformSource };
|
package/dist/cx/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_merge_index = require("../merge/index.cjs");
|
|
3
4
|
let css_variants = require("css-variants");
|
|
4
|
-
|
|
5
5
|
//#region src/cx/index.ts
|
|
6
6
|
const createBossClassNameResolver = (mergeConfig, resolver = css_variants.cx) => {
|
|
7
|
-
const merge
|
|
7
|
+
const merge = require_merge_index.createBossMerge(mergeConfig);
|
|
8
8
|
return (...inputs) => {
|
|
9
|
-
return merge
|
|
9
|
+
return merge(resolver(...inputs));
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
const createBossCx = (config = {}) => {
|
|
@@ -81,7 +81,6 @@ const createBossSv = () => {
|
|
|
81
81
|
};
|
|
82
82
|
};
|
|
83
83
|
const sv = createBossSv();
|
|
84
|
-
|
|
85
84
|
//#endregion
|
|
86
85
|
exports.createBossCv = createBossCv;
|
|
87
86
|
exports.createBossCx = createBossCx;
|
|
@@ -90,4 +89,4 @@ exports.createBossSv = createBossSv;
|
|
|
90
89
|
exports.cv = cv;
|
|
91
90
|
exports.cx = cx;
|
|
92
91
|
exports.scv = scv;
|
|
93
|
-
exports.sv = sv;
|
|
92
|
+
exports.sv = sv;
|
package/dist/cx/index.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { createBossMerge, merge } from "../merge/index.mjs";
|
|
2
2
|
import { cv as cv$1, cx as cx$1, scv as scv$1 } from "css-variants";
|
|
3
|
-
|
|
4
3
|
//#region src/cx/index.ts
|
|
5
4
|
const createBossClassNameResolver = (mergeConfig, resolver = cx$1) => {
|
|
6
|
-
const merge
|
|
5
|
+
const merge = createBossMerge(mergeConfig);
|
|
7
6
|
return (...inputs) => {
|
|
8
|
-
return merge
|
|
7
|
+
return merge(resolver(...inputs));
|
|
9
8
|
};
|
|
10
9
|
};
|
|
11
10
|
const createBossCx = (config = {}) => {
|
|
@@ -80,6 +79,5 @@ const createBossSv = () => {
|
|
|
80
79
|
};
|
|
81
80
|
};
|
|
82
81
|
const sv = createBossSv();
|
|
83
|
-
|
|
84
82
|
//#endregion
|
|
85
|
-
export { createBossCv, createBossCx, createBossScv, createBossSv, cv, cx, scv, sv };
|
|
83
|
+
export { createBossCv, createBossCx, createBossScv, createBossSv, cv, cx, scv, sv };
|
package/dist/detect-fw/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_json = require("../shared/json.cjs");
|
|
3
4
|
let node_fs_promises = require("node:fs/promises");
|
|
4
|
-
node_fs_promises =
|
|
5
|
+
node_fs_promises = require_runtime.__toESM(node_fs_promises);
|
|
5
6
|
let node_path = require("node:path");
|
|
6
|
-
node_path =
|
|
7
|
-
|
|
7
|
+
node_path = require_runtime.__toESM(node_path);
|
|
8
8
|
//#region src/detect-fw/index.ts
|
|
9
9
|
const jsxFrameworks = [
|
|
10
10
|
{
|
|
@@ -377,8 +377,7 @@ const listFrameworks = () => jsxFrameworks.map((entry) => ({
|
|
|
377
377
|
className: entry.className,
|
|
378
378
|
jsx: entry.jsx
|
|
379
379
|
}));
|
|
380
|
-
|
|
381
380
|
//#endregion
|
|
382
381
|
exports.detectFramework = detectFramework;
|
|
383
382
|
exports.getJsxTypes = getJsxTypes;
|
|
384
|
-
exports.listFrameworks = listFrameworks;
|
|
383
|
+
exports.listFrameworks = listFrameworks;
|
package/dist/detect-fw/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { parseJson } from "../shared/json.mjs";
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
|
|
5
4
|
//#region src/detect-fw/index.ts
|
|
6
5
|
const jsxFrameworks = [
|
|
7
6
|
{
|
|
@@ -374,6 +373,5 @@ const listFrameworks = () => jsxFrameworks.map((entry) => ({
|
|
|
374
373
|
className: entry.className,
|
|
375
374
|
jsx: entry.jsx
|
|
376
375
|
}));
|
|
377
|
-
|
|
378
376
|
//#endregion
|
|
379
|
-
export { detectFramework, getJsxTypes, listFrameworks };
|
|
377
|
+
export { detectFramework, getJsxTypes, listFrameworks };
|
package/dist/dev/client.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region src/dev/client.ts
|
|
3
3
|
const DEVTOOLS_ATTR = "data-boss-devtools";
|
|
4
4
|
const ROOT_ID = "boss-devtools-root";
|
|
@@ -34,6 +34,5 @@ async function loadDevtools() {
|
|
|
34
34
|
return null;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
|
|
38
37
|
//#endregion
|
|
39
|
-
exports.startDevClient = startDevClient;
|
|
38
|
+
exports.startDevClient = startDevClient;
|
package/dist/dev/client.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region src/dev/plugin/browser.ts
|
|
3
3
|
const name = "devtools";
|
|
4
4
|
const onBrowserObjectStart = (api, { output = {}, contexts = [] }) => {
|
|
5
5
|
if (contexts.length) return;
|
|
6
6
|
output["data-boss"] = "true";
|
|
7
7
|
};
|
|
8
|
-
|
|
9
8
|
//#endregion
|
|
10
9
|
exports.name = name;
|
|
11
|
-
exports.onBrowserObjectStart = onBrowserObjectStart;
|
|
10
|
+
exports.onBrowserObjectStart = onBrowserObjectStart;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_shared = require("../shared.cjs");
|
|
4
|
+
const require_dev_server = require("../server.cjs");
|
|
5
|
+
const require_port = require("../port.cjs");
|
|
6
6
|
//#region src/dev/plugin/server.ts
|
|
7
|
-
var server_exports = /* @__PURE__ */
|
|
7
|
+
var server_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
8
8
|
name: () => name,
|
|
9
9
|
onBoot: () => onBoot,
|
|
10
10
|
onSession: () => onSession
|
|
@@ -26,7 +26,7 @@ const onBoot = async (api) => {
|
|
|
26
26
|
});
|
|
27
27
|
api.file.js.set("body", "devtools:globalThis", `globalThis.host$$ = ${hostApiVar}`);
|
|
28
28
|
const port = Number(api.devServer?.port);
|
|
29
|
-
if (Number.isFinite(port) && port !==
|
|
29
|
+
if (Number.isFinite(port) && port !== 48400) api.file.js.config({
|
|
30
30
|
from: "boss-css/dev/plugin",
|
|
31
31
|
config: { devServer: { port } }
|
|
32
32
|
});
|
|
@@ -91,14 +91,13 @@ const onSession = async (api, session) => {
|
|
|
91
91
|
if (api?.devServer?.autoStart === false) return;
|
|
92
92
|
await ensureDevServer(api, session);
|
|
93
93
|
};
|
|
94
|
-
|
|
95
94
|
//#endregion
|
|
96
95
|
exports.name = name;
|
|
97
96
|
exports.onBoot = onBoot;
|
|
98
97
|
exports.onSession = onSession;
|
|
99
|
-
Object.defineProperty(exports,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
});
|
|
98
|
+
Object.defineProperty(exports, "server_exports", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function() {
|
|
101
|
+
return server_exports;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { DEFAULT_DEV_PORT } from "../shared.mjs";
|
|
3
3
|
import { startDevServer } from "../server.mjs";
|
|
4
4
|
import { updateDevPort, updateRuntimePort } from "../port.mjs";
|
|
5
|
-
|
|
6
5
|
//#region src/dev/plugin/server.ts
|
|
7
6
|
var server_exports = /* @__PURE__ */ __exportAll({
|
|
8
7
|
name: () => name,
|
|
@@ -26,7 +25,7 @@ const onBoot = async (api) => {
|
|
|
26
25
|
});
|
|
27
26
|
api.file.js.set("body", "devtools:globalThis", `globalThis.host$$ = ${hostApiVar}`);
|
|
28
27
|
const port = Number(api.devServer?.port);
|
|
29
|
-
if (Number.isFinite(port) && port !==
|
|
28
|
+
if (Number.isFinite(port) && port !== 48400) api.file.js.config({
|
|
30
29
|
from: "boss-css/dev/plugin",
|
|
31
30
|
config: { devServer: { port } }
|
|
32
31
|
});
|
|
@@ -91,6 +90,5 @@ const onSession = async (api, session) => {
|
|
|
91
90
|
if (api?.devServer?.autoStart === false) return;
|
|
92
91
|
await ensureDevServer(api, session);
|
|
93
92
|
};
|
|
94
|
-
|
|
95
93
|
//#endregion
|
|
96
|
-
export { name, onBoot, onSession, server_exports };
|
|
94
|
+
export { name, onBoot, onSession, server_exports };
|
package/dist/dev/port.cjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
2
|
let node_fs_promises = require("node:fs/promises");
|
|
3
|
-
node_fs_promises =
|
|
4
|
-
|
|
3
|
+
node_fs_promises = require_runtime.__toESM(node_fs_promises);
|
|
5
4
|
//#region src/dev/port.ts
|
|
6
5
|
const updateDevPort = async (configPath, port, allowInsert) => {
|
|
7
6
|
const raw = await node_fs_promises.default.readFile(configPath, "utf8");
|
|
@@ -40,7 +39,6 @@ const updateRuntimePort = async (runtimePath, port) => {
|
|
|
40
39
|
return false;
|
|
41
40
|
}
|
|
42
41
|
};
|
|
43
|
-
|
|
44
42
|
//#endregion
|
|
45
43
|
exports.updateDevPort = updateDevPort;
|
|
46
|
-
exports.updateRuntimePort = updateRuntimePort;
|
|
44
|
+
exports.updateRuntimePort = updateRuntimePort;
|
package/dist/dev/port.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import fs from "node:fs/promises";
|
|
2
|
-
|
|
3
2
|
//#region src/dev/port.ts
|
|
4
3
|
const updateDevPort = async (configPath, port, allowInsert) => {
|
|
5
4
|
const raw = await fs.readFile(configPath, "utf8");
|
|
@@ -38,6 +37,5 @@ const updateRuntimePort = async (runtimePath, port) => {
|
|
|
38
37
|
return false;
|
|
39
38
|
}
|
|
40
39
|
};
|
|
41
|
-
|
|
42
40
|
//#endregion
|
|
43
|
-
export { updateDevPort, updateRuntimePort };
|
|
41
|
+
export { updateDevPort, updateRuntimePort };
|
package/dist/dev/runtime.cjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
const require_api_browser = require(
|
|
2
|
-
const require_shared = require(
|
|
3
|
-
|
|
1
|
+
const require_api_browser = require("../api/browser.cjs");
|
|
2
|
+
const require_shared = require("./shared.cjs");
|
|
4
3
|
//#region src/dev/runtime.ts
|
|
5
4
|
const getDevPort = () => {
|
|
6
5
|
const rawPort = require_api_browser.api?.devServer?.port;
|
|
@@ -24,5 +23,4 @@ const isDevEnvironment = () => {
|
|
|
24
23
|
return true;
|
|
25
24
|
};
|
|
26
25
|
startDevtools();
|
|
27
|
-
|
|
28
|
-
//#endregion
|
|
26
|
+
//#endregion
|
package/dist/dev/runtime.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { api } from "../api/browser.mjs";
|
|
2
2
|
import { DEFAULT_DEV_PORT } from "./shared.mjs";
|
|
3
|
-
|
|
4
3
|
//#region src/dev/runtime.ts
|
|
5
4
|
const getDevPort = () => {
|
|
6
5
|
const rawPort = api?.devServer?.port;
|
|
@@ -24,6 +23,5 @@ const isDevEnvironment = () => {
|
|
|
24
23
|
return true;
|
|
25
24
|
};
|
|
26
25
|
startDevtools();
|
|
27
|
-
|
|
28
26
|
//#endregion
|
|
29
|
-
export {
|
|
27
|
+
export {};
|