@peter.naydenov/cuts 2.0.1 → 2.0.3
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/Changelog.md +10 -0
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/src/findInstructions.js.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/main.js.html +1 -1
- package/coverage/lcov-report/src/methods/hide.js.html +1 -1
- package/coverage/lcov-report/src/methods/index.html +1 -1
- package/coverage/lcov-report/src/methods/jump.js.html +1 -1
- package/coverage/lcov-report/src/methods/jumpBack.js.html +1 -1
- package/coverage/lcov-report/src/methods/jumpsReset.js.html +1 -1
- package/coverage/lcov-report/src/methods/listShortcuts.js.html +1 -1
- package/coverage/lcov-report/src/methods/setScenes.js.html +1 -1
- package/coverage/lcov-report/src/methods/show.js.html +1 -1
- package/coverage/lcov-report/src/setInstruction.js.html +1 -1
- package/package.json +15 -19
- package/playwright.config.js +13 -0
- package/test/01-findPosition.test.js +119 -0
- package/test/02-cuts.test.js +412 -0
- package/test-e2e/01-general.test.js +290 -0
- package/test-e2e/index.html +30 -0
- package/test-e2e/node_modules/.package-lock.json +584 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_log.js +36 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_log.js.map +1 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_shortcuts.js +983 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_shortcuts.js.map +1 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_visual-controller-for-vue3.js +267 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_visual-controller-for-vue3.js.map +1 -0
- package/test-e2e/node_modules/.vite/deps/_metadata.json +44 -0
- package/test-e2e/node_modules/.vite/deps/ask-for-promise.js +223 -0
- package/test-e2e/node_modules/.vite/deps/ask-for-promise.js.map +1 -0
- package/test-e2e/node_modules/.vite/deps/package.json +3 -0
- package/test-e2e/node_modules/.vite/deps/vue.js +2 -0
- package/test-e2e/node_modules/.vite/deps/vue.runtime.esm-bundler-DaROHT9e.js +8579 -0
- package/test-e2e/node_modules/.vite/deps/vue.runtime.esm-bundler-DaROHT9e.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/LICENSE +22 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/README.md +19 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/lib/index.js +295 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/lib/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/package.json +31 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/README.md +19 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/package.json +31 -0
- package/test-e2e/node_modules/@babel/parser/CHANGELOG.md +1073 -0
- package/test-e2e/node_modules/@babel/parser/LICENSE +19 -0
- package/test-e2e/node_modules/@babel/parser/README.md +19 -0
- package/test-e2e/node_modules/@babel/parser/bin/babel-parser.js +15 -0
- package/test-e2e/node_modules/@babel/parser/lib/index.js +14582 -0
- package/test-e2e/node_modules/@babel/parser/lib/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/parser/package.json +50 -0
- package/test-e2e/node_modules/@babel/parser/typings/babel-parser.d.ts +262 -0
- package/test-e2e/node_modules/@babel/types/LICENSE +22 -0
- package/test-e2e/node_modules/@babel/types/README.md +19 -0
- package/test-e2e/node_modules/@babel/types/lib/asserts/assertNode.js +16 -0
- package/test-e2e/node_modules/@babel/types/lib/asserts/assertNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/asserts/generated/index.js +1251 -0
- package/test-e2e/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/ast-types/generated/index.js +3 -0
- package/test-e2e/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +18 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +31 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/index.js +29 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/lowercase.js +2902 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/uppercase.js +272 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/productions.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/productions.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/react/buildChildren.js +24 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +22 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/validateNode.js +21 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/validateNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/clone.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/clone.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeep.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeep.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneNode.js +107 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/addComment.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/addComment.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/addComments.js +22 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/addComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritInnerComments.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritsComments.js +17 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritsComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/removeComments.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/removeComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/constants/generated/index.js +60 -0
- package/test-e2e/node_modules/@babel/types/lib/constants/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/constants/index.js +31 -0
- package/test-e2e/node_modules/@babel/types/lib/constants/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/ensureBlock.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/ensureBlock.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +65 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toBlock.js +29 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toBlock.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toComputedKey.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toComputedKey.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toExpression.js +28 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toIdentifier.js +25 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toIdentifier.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toKeyAlias.js +38 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toSequenceExpression.js +19 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toStatement.js +39 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toStatement.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/valueToNode.js +89 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/valueToNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/core.js +1725 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/core.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +11 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/experimental.js +124 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/experimental.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/flow.js +495 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/flow.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/index.js +106 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/jsx.js +157 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/misc.js +31 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/misc.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/placeholders.js +27 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/placeholders.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/typescript.js +528 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/utils.js +296 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/utils.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/index-legacy.d.ts +2797 -0
- package/test-e2e/node_modules/@babel/types/lib/index.d.ts +3617 -0
- package/test-e2e/node_modules/@babel/types/lib/index.js +582 -0
- package/test-e2e/node_modules/@babel/types/lib/index.js.flow +2650 -0
- package/test-e2e/node_modules/@babel/types/lib/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +65 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/inherits.js +28 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/inherits.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +17 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/removeProperties.js +24 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/removeProperties.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +66 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js +48 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +102 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getFunctionName.js +63 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getFunctionName.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/traverse/traverse.js +50 -0
- package/test-e2e/node_modules/@babel/types/lib/traverse/traverse.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/traverse/traverseFast.js +40 -0
- package/test-e2e/node_modules/@babel/types/lib/traverse/traverseFast.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/deprecationWarning.js +44 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/inherit.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/inherit.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +40 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/shallowEqual.js +17 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/shallowEqual.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/generated/index.js +2797 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/is.js +27 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/is.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isBinding.js +27 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isBinding.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isBlockScoped.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isImmutable.js +21 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isImmutable.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isLet.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isLet.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isNode.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +57 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isPlaceholderType.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isReferenced.js +96 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isReferenced.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isScope.js +18 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isScope.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isType.js +17 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isType.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isValidIdentifier.js +18 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isVar.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isVar.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/matchesPattern.js +44 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/matchesPattern.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/react/isCompatTag.js +11 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/react/isReactComponent.js +11 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/validate.js +42 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/validate.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/package.json +39 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/LICENSE +19 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +423 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +6 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +464 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +6 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/package.json +63 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +345 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +111 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/strings.ts +65 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +55 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts +50 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +9 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts +16 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +7 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +1 -0
- package/test-e2e/node_modules/@oxc-project/types/LICENSE +22 -0
- package/test-e2e/node_modules/@oxc-project/types/README.md +3 -0
- package/test-e2e/node_modules/@oxc-project/types/package.json +26 -0
- package/test-e2e/node_modules/@oxc-project/types/types.d.ts +1912 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/CODE_OF_CONDUCT.md +128 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/Changelog.md +88 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/LICENSE +21 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/README.md +294 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/SECURITY.md +18 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/base.css +224 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/block-navigation.js +87 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/favicon.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/index.html +116 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/main.js.html +592 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/prettify.css +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/prettify.js +2 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/sorter.js +196 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov.info +246 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/tmp/coverage-46509-1760816753149-0.json +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/tmp/coverage-46510-1760816753116-0.json +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.cjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.esm.mjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.umd.js +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/notice-desk.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/package.json +64 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/rollup.config.js +37 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/src/main.js +168 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/tsconfig.json +11 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/types/main.d.ts +12 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/types/main.d.ts.map +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/types/src/main.d.ts +12 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/types/src/main.d.ts.map +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/API.md +939 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/CODE_OF_CONDUCT.md +84 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/CONTRIBUTING.md +476 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/Changelog.md +217 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/How.to.create.plugins.md +929 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/LICENSE +21 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/Migration.guide.md +176 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/README-v.2.x.x.md +375 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/README.md +900 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/main.d.ts +172 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_normalizeWithPlugins.d.ts +64 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_readShortcutWithPlugins.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_setupPlugin.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_systemAction.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/changeContext.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/index.d.ts +19 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/listShortcuts.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/load.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/unload.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_findTarget.d.ts +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_listenDOM.d.ts +78 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_normalizeShortcutName.d.ts +8 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_readClickEvent.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/index.d.ts +16 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_defaults.d.ts +17 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_listenDOM.d.ts +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_registerShortcutEvents.d.ts +96 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/index.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_findTarget.d.ts +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_listenDOM.d.ts +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/index.d.ts +14 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_listenDOM.d.ts +63 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_readKeyEvent.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_specialChars.d.ts +7 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/index.d.ts +14 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_listenDOM.d.ts +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/index.d.ts +16 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.cjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.esm.mjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.umd.js +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/main.d.ts +172 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_normalizeWithPlugins.d.ts +64 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_readShortcutWithPlugins.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_setupPlugin.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_systemAction.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/changeContext.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/index.d.ts +19 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/listShortcuts.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/load.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/unload.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_findTarget.d.ts +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_listenDOM.d.ts +78 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_normalizeShortcutName.d.ts +8 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_readClickEvent.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/index.d.ts +16 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_defaults.d.ts +17 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_listenDOM.d.ts +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_registerShortcutEvents.d.ts +96 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/index.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_findTarget.d.ts +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_listenDOM.d.ts +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/index.d.ts +14 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_listenDOM.d.ts +63 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_readKeyEvent.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_specialChars.d.ts +7 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/index.d.ts +14 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_listenDOM.d.ts +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/index.d.ts +16 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/eslint.config.js +80 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/assets/index-COTh6lXR.css +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/assets/index-DOkKC3NI.js +53 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/bg.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/favicon.ico +0 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/favicon.svg +5 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/html.meta.json.gz +0 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/index.html +32 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/index.html +126 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/javascript.svg +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/jsconfig.json +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/package.json +66 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/public/vite.svg +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/rollup.config.js +40 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/shortcuts.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/main.js +302 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_normalizeWithPlugins.js +49 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_readShortcutWithPlugins.js +32 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_setupPlugin.js +93 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_systemAction.js +33 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/changeContext.js +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/index.js +25 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/listShortcuts.js +34 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/load.js +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/unload.js +38 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_findTarget.js +26 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_listenDOM.js +165 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_normalizeShortcutName.js +51 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_readClickEvent.js +24 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_registerShortcutEvents.js +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/index.js +67 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_defaults.js +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_listenDOM.js +127 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_normalizeShortcutName.js +21 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_registerShortcutEvents.js +147 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/index.js +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_findTarget.js +26 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_listenDOM.js +154 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_normalizeShortcutName.js +21 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_registerShortcutEvents.js +51 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/index.js +71 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_listenDOM.js +186 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_normalizeShortcutName.js +32 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_readKeyEvent.js +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_registerShortcutEvents.js +57 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_specialChars.js +43 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/index.js +67 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_listenDOM.js +141 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_normalizeShortcutName.js +21 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_registerShortcutEvents.js +50 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/index.js +61 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/style.css +97 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/01-general.test.js +275 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/02-key.test.js +473 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/03-click.test.js +596 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/04-form.test.js +327 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/05-hover.test.js +463 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/06-scroll.test.js +374 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/Block.jsx +15 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/setup.js +18 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/style.css +26 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/wait.js +8 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/tsconfig.json +24 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/vite.config.js +7 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/vitest.config.js +23 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/LICENSE +21 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/fixtures/example.json +5 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/commands.js +25 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/component-index.html +12 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/component.js +27 -0
- package/{cypress.config.mjs → test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress.config.js} +2 -3
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.cjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.esm.mjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.umd.js +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/index.html +13 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/package.json +43 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/public/vite.svg +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/readme.md +233 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/rollup.config.js +42 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/App.vue +44 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/assets/vue.svg +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/components/HelloWorld.vue +26 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/main.js +101 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/style.css +90 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/test/01_general.cy.js +98 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/vite.config.js +7 -0
- package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/README.md +3 -0
- package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/package.json +37 -0
- package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/rolldown-binding.darwin-arm64.node +0 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/LICENSE +25 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/README.md +77 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts +90 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +256 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts +28 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +75 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/index.d.ts +3 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/index.js +3 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts +71 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +70 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/index.d.ts +1 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/index.js +1 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/utils.d.ts +2 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/utils.js +17 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/package.json +37 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/LICENSE +21 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/README.md +278 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/dist/index.d.mts +120 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/dist/index.mjs +1745 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/package.json +65 -0
- package/test-e2e/node_modules/@vue/compiler-core/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/compiler-core/README.md +1 -0
- package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js +6888 -0
- package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
- package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +1100 -0
- package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js +5835 -0
- package/test-e2e/node_modules/@vue/compiler-core/index.js +7 -0
- package/test-e2e/node_modules/@vue/compiler-core/package.json +58 -0
- package/test-e2e/node_modules/@vue/compiler-dom/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/compiler-dom/README.md +1 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js +934 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +45 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +6644 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +14 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +690 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.global.js +6814 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.global.prod.js +14 -0
- package/test-e2e/node_modules/@vue/compiler-dom/index.js +7 -0
- package/test-e2e/node_modules/@vue/compiler-dom/package.json +57 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/README.md +79 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +25619 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +487 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +50833 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/package.json +67 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/README.md +1 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +4 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/test-e2e/node_modules/@vue/reactivity/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/reactivity/README.md +19 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.cjs.js +2033 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1877 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.d.ts +756 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-browser.js +2031 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-browser.prod.js +5 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +1990 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.global.js +2087 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.global.prod.js +5 -0
- package/test-e2e/node_modules/@vue/reactivity/index.js +7 -0
- package/test-e2e/node_modules/@vue/reactivity/package.json +55 -0
- package/test-e2e/node_modules/@vue/runtime-core/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/runtime-core/README.md +28 -0
- package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js +8718 -0
- package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6856 -0
- package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +1866 -0
- package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +8647 -0
- package/test-e2e/node_modules/@vue/runtime-core/index.js +7 -0
- package/test-e2e/node_modules/@vue/runtime-core/package.json +52 -0
- package/test-e2e/node_modules/@vue/runtime-dom/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/runtime-dom/README.md +13 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js +1946 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1796 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1450 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.js +12794 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.prod.js +7 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +1985 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.global.js +12847 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.global.prod.js +7 -0
- package/test-e2e/node_modules/@vue/runtime-dom/index.js +7 -0
- package/test-e2e/node_modules/@vue/runtime-dom/package.json +60 -0
- package/test-e2e/node_modules/@vue/server-renderer/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/server-renderer/README.md +178 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js +1159 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +883 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +65 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-browser.js +8627 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-browser.prod.js +5 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js +1097 -0
- package/test-e2e/node_modules/@vue/server-renderer/index.js +7 -0
- package/test-e2e/node_modules/@vue/server-renderer/package.json +55 -0
- package/test-e2e/node_modules/@vue/shared/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/shared/README.md +3 -0
- package/test-e2e/node_modules/@vue/shared/dist/shared.cjs.js +612 -0
- package/test-e2e/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/test-e2e/node_modules/@vue/shared/dist/shared.d.ts +334 -0
- package/test-e2e/node_modules/@vue/shared/dist/shared.esm-bundler.js +536 -0
- package/test-e2e/node_modules/@vue/shared/index.js +7 -0
- package/test-e2e/node_modules/@vue/shared/package.json +47 -0
- package/test-e2e/node_modules/ask-for-promise/LICENSE +21 -0
- package/test-e2e/node_modules/ask-for-promise/README.md +278 -0
- package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.cjs +1 -0
- package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.esm.mjs +1 -0
- package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.umd.js +1 -0
- package/test-e2e/node_modules/ask-for-promise/package.json +77 -0
- package/test-e2e/node_modules/ask-for-promise/src/askForPromise.js +277 -0
- package/test-e2e/node_modules/ask-for-promise/types/index.d.ts +18 -0
- package/test-e2e/node_modules/csstype/LICENSE +19 -0
- package/test-e2e/node_modules/csstype/README.md +291 -0
- package/test-e2e/node_modules/csstype/index.d.ts +22569 -0
- package/test-e2e/node_modules/csstype/index.js.flow +6863 -0
- package/test-e2e/node_modules/csstype/package.json +70 -0
- package/test-e2e/node_modules/detect-libc/LICENSE +201 -0
- package/test-e2e/node_modules/detect-libc/README.md +163 -0
- package/test-e2e/node_modules/detect-libc/index.d.ts +14 -0
- package/test-e2e/node_modules/detect-libc/lib/detect-libc.js +313 -0
- package/test-e2e/node_modules/detect-libc/lib/elf.js +39 -0
- package/test-e2e/node_modules/detect-libc/lib/filesystem.js +51 -0
- package/test-e2e/node_modules/detect-libc/lib/process.js +24 -0
- package/test-e2e/node_modules/detect-libc/package.json +44 -0
- package/test-e2e/node_modules/entities/LICENSE +11 -0
- package/test-e2e/node_modules/entities/decode.d.ts +3 -0
- package/test-e2e/node_modules/entities/decode.js +3 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +19 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode.d.ts +205 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/encode.d.ts +22 -0
- package/test-e2e/node_modules/entities/dist/commonjs/encode.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/encode.js +92 -0
- package/test-e2e/node_modules/entities/dist/commonjs/encode.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/escape.d.ts +46 -0
- package/test-e2e/node_modules/entities/dist/commonjs/escape.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/escape.js +138 -0
- package/test-e2e/node_modules/entities/dist/commonjs/escape.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +3 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.js +14 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/index.d.ts +96 -0
- package/test-e2e/node_modules/entities/dist/commonjs/index.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/index.js +131 -0
- package/test-e2e/node_modules/entities/dist/commonjs/index.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +17 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +32 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.js +94 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/package.json +3 -0
- package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.d.ts +19 -0
- package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.js +72 -0
- package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/decode.d.ts +205 -0
- package/test-e2e/node_modules/entities/dist/esm/decode.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/decode.js +554 -0
- package/test-e2e/node_modules/entities/dist/esm/decode.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/encode.d.ts +22 -0
- package/test-e2e/node_modules/entities/dist/esm/encode.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/encode.js +88 -0
- package/test-e2e/node_modules/entities/dist/esm/encode.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/escape.d.ts +46 -0
- package/test-e2e/node_modules/entities/dist/esm/escape.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/escape.js +134 -0
- package/test-e2e/node_modules/entities/dist/esm/escape.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.js +4 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.d.ts +3 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.js +11 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/index.d.ts +96 -0
- package/test-e2e/node_modules/entities/dist/esm/index.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/index.js +107 -0
- package/test-e2e/node_modules/entities/dist/esm/index.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +17 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.js +18 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.js +28 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.d.ts +32 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.js +91 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/package.json +3 -0
- package/test-e2e/node_modules/entities/escape.d.ts +3 -0
- package/test-e2e/node_modules/entities/escape.js +3 -0
- package/test-e2e/node_modules/entities/package.json +120 -0
- package/test-e2e/node_modules/entities/readme.md +143 -0
- package/test-e2e/node_modules/entities/src/decode-codepoint.ts +81 -0
- package/test-e2e/node_modules/entities/src/decode.ts +685 -0
- package/test-e2e/node_modules/entities/src/encode.ts +93 -0
- package/test-e2e/node_modules/entities/src/escape.ts +161 -0
- package/test-e2e/node_modules/entities/src/generated/.eslintrc.json +10 -0
- package/test-e2e/node_modules/entities/src/generated/decode-data-html.ts +6 -0
- package/test-e2e/node_modules/entities/src/generated/decode-data-xml.ts +6 -0
- package/test-e2e/node_modules/entities/src/generated/encode-html.ts +17 -0
- package/test-e2e/node_modules/entities/src/index.ts +187 -0
- package/test-e2e/node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
- package/test-e2e/node_modules/entities/src/internal/decode-shared.ts +30 -0
- package/test-e2e/node_modules/entities/src/internal/encode-shared.ts +121 -0
- package/test-e2e/node_modules/estree-walker/CHANGELOG.md +92 -0
- package/test-e2e/node_modules/estree-walker/LICENSE +7 -0
- package/test-e2e/node_modules/estree-walker/README.md +48 -0
- package/test-e2e/node_modules/estree-walker/dist/esm/estree-walker.js +333 -0
- package/test-e2e/node_modules/estree-walker/dist/esm/package.json +1 -0
- package/test-e2e/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/test-e2e/node_modules/estree-walker/package.json +37 -0
- package/test-e2e/node_modules/estree-walker/src/async.js +118 -0
- package/test-e2e/node_modules/estree-walker/src/index.js +35 -0
- package/test-e2e/node_modules/estree-walker/src/package.json +1 -0
- package/test-e2e/node_modules/estree-walker/src/sync.js +118 -0
- package/test-e2e/node_modules/estree-walker/src/walker.js +61 -0
- package/test-e2e/node_modules/estree-walker/types/async.d.ts +53 -0
- package/test-e2e/node_modules/estree-walker/types/index.d.ts +56 -0
- package/test-e2e/node_modules/estree-walker/types/sync.d.ts +53 -0
- package/test-e2e/node_modules/estree-walker/types/tsconfig.tsbuildinfo +345 -0
- package/test-e2e/node_modules/estree-walker/types/walker.d.ts +37 -0
- package/test-e2e/node_modules/fdir/LICENSE +7 -0
- package/test-e2e/node_modules/fdir/README.md +91 -0
- package/test-e2e/node_modules/fdir/dist/index.cjs +588 -0
- package/test-e2e/node_modules/fdir/dist/index.d.cts +155 -0
- package/test-e2e/node_modules/fdir/dist/index.d.mts +155 -0
- package/test-e2e/node_modules/fdir/dist/index.mjs +570 -0
- package/test-e2e/node_modules/fdir/package.json +103 -0
- package/test-e2e/node_modules/lightningcss/LICENSE +373 -0
- package/test-e2e/node_modules/lightningcss/README.md +105 -0
- package/test-e2e/node_modules/lightningcss/node/ast.d.ts +9892 -0
- package/test-e2e/node_modules/lightningcss/node/ast.js.flow +10539 -0
- package/test-e2e/node_modules/lightningcss/node/browserslistToTargets.js +48 -0
- package/test-e2e/node_modules/lightningcss/node/composeVisitors.js +450 -0
- package/test-e2e/node_modules/lightningcss/node/flags.js +28 -0
- package/test-e2e/node_modules/lightningcss/node/index.d.ts +494 -0
- package/test-e2e/node_modules/lightningcss/node/index.js +59 -0
- package/test-e2e/node_modules/lightningcss/node/index.js.flow +843 -0
- package/test-e2e/node_modules/lightningcss/node/index.mjs +4 -0
- package/test-e2e/node_modules/lightningcss/node/targets.d.ts +40 -0
- package/test-e2e/node_modules/lightningcss/node/targets.js.flow +39 -0
- package/test-e2e/node_modules/lightningcss/package.json +110 -0
- package/test-e2e/node_modules/lightningcss-darwin-arm64/LICENSE +373 -0
- package/test-e2e/node_modules/lightningcss-darwin-arm64/README.md +1 -0
- package/test-e2e/node_modules/lightningcss-darwin-arm64/lightningcss.darwin-arm64.node +0 -0
- package/test-e2e/node_modules/lightningcss-darwin-arm64/package.json +34 -0
- package/test-e2e/node_modules/magic-string/LICENSE +7 -0
- package/test-e2e/node_modules/magic-string/README.md +325 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.d.ts +289 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.js +1594 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.js.map +1 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.es.d.mts +289 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.es.mjs +1588 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.es.mjs.map +1 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.umd.js +1682 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.umd.js.map +1 -0
- package/test-e2e/node_modules/magic-string/package.json +67 -0
- package/test-e2e/node_modules/nanoid/LICENSE +20 -0
- package/test-e2e/node_modules/nanoid/README.md +39 -0
- package/test-e2e/node_modules/nanoid/async/index.browser.cjs +69 -0
- package/test-e2e/node_modules/nanoid/async/index.browser.js +34 -0
- package/test-e2e/node_modules/nanoid/async/index.cjs +71 -0
- package/test-e2e/node_modules/nanoid/async/index.d.ts +56 -0
- package/test-e2e/node_modules/nanoid/async/index.js +35 -0
- package/test-e2e/node_modules/nanoid/async/index.native.js +26 -0
- package/test-e2e/node_modules/nanoid/async/package.json +12 -0
- package/test-e2e/node_modules/nanoid/bin/nanoid.cjs +55 -0
- package/test-e2e/node_modules/nanoid/index.browser.cjs +72 -0
- package/test-e2e/node_modules/nanoid/index.browser.js +34 -0
- package/test-e2e/node_modules/nanoid/index.cjs +85 -0
- package/test-e2e/node_modules/nanoid/index.d.cts +91 -0
- package/test-e2e/node_modules/nanoid/index.d.ts +91 -0
- package/test-e2e/node_modules/nanoid/index.js +45 -0
- package/test-e2e/node_modules/nanoid/nanoid.js +1 -0
- package/test-e2e/node_modules/nanoid/non-secure/index.cjs +34 -0
- package/test-e2e/node_modules/nanoid/non-secure/index.d.ts +33 -0
- package/test-e2e/node_modules/nanoid/non-secure/index.js +21 -0
- package/test-e2e/node_modules/nanoid/non-secure/package.json +6 -0
- package/test-e2e/node_modules/nanoid/package.json +89 -0
- package/test-e2e/node_modules/nanoid/url-alphabet/index.cjs +7 -0
- package/test-e2e/node_modules/nanoid/url-alphabet/index.js +3 -0
- package/test-e2e/node_modules/nanoid/url-alphabet/package.json +6 -0
- package/test-e2e/node_modules/picocolors/LICENSE +15 -0
- package/test-e2e/node_modules/picocolors/README.md +21 -0
- package/test-e2e/node_modules/picocolors/package.json +25 -0
- package/test-e2e/node_modules/picocolors/picocolors.browser.js +4 -0
- package/test-e2e/node_modules/picocolors/picocolors.d.ts +5 -0
- package/test-e2e/node_modules/picocolors/picocolors.js +75 -0
- package/test-e2e/node_modules/picocolors/types.d.ts +51 -0
- package/test-e2e/node_modules/picomatch/LICENSE +21 -0
- package/test-e2e/node_modules/picomatch/README.md +749 -0
- package/test-e2e/node_modules/picomatch/index.js +17 -0
- package/test-e2e/node_modules/picomatch/lib/constants.js +184 -0
- package/test-e2e/node_modules/picomatch/lib/parse.js +1386 -0
- package/test-e2e/node_modules/picomatch/lib/picomatch.js +349 -0
- package/test-e2e/node_modules/picomatch/lib/scan.js +391 -0
- package/test-e2e/node_modules/picomatch/lib/utils.js +72 -0
- package/test-e2e/node_modules/picomatch/package.json +82 -0
- package/test-e2e/node_modules/picomatch/posix.js +3 -0
- package/test-e2e/node_modules/postcss/LICENSE +20 -0
- package/test-e2e/node_modules/postcss/README.md +28 -0
- package/test-e2e/node_modules/postcss/lib/at-rule.d.ts +139 -0
- package/test-e2e/node_modules/postcss/lib/at-rule.js +25 -0
- package/test-e2e/node_modules/postcss/lib/comment.d.ts +67 -0
- package/test-e2e/node_modules/postcss/lib/comment.js +13 -0
- package/test-e2e/node_modules/postcss/lib/container.d.ts +478 -0
- package/test-e2e/node_modules/postcss/lib/container.js +447 -0
- package/test-e2e/node_modules/postcss/lib/css-syntax-error.d.ts +247 -0
- package/test-e2e/node_modules/postcss/lib/css-syntax-error.js +133 -0
- package/test-e2e/node_modules/postcss/lib/declaration.d.ts +150 -0
- package/test-e2e/node_modules/postcss/lib/declaration.js +24 -0
- package/test-e2e/node_modules/postcss/lib/document.d.ts +68 -0
- package/test-e2e/node_modules/postcss/lib/document.js +33 -0
- package/test-e2e/node_modules/postcss/lib/fromJSON.d.ts +9 -0
- package/test-e2e/node_modules/postcss/lib/fromJSON.js +54 -0
- package/test-e2e/node_modules/postcss/lib/input.d.ts +226 -0
- package/test-e2e/node_modules/postcss/lib/input.js +273 -0
- package/test-e2e/node_modules/postcss/lib/lazy-result.d.ts +189 -0
- package/test-e2e/node_modules/postcss/lib/lazy-result.js +550 -0
- package/test-e2e/node_modules/postcss/lib/list.d.ts +60 -0
- package/test-e2e/node_modules/postcss/lib/list.js +58 -0
- package/test-e2e/node_modules/postcss/lib/map-generator.js +376 -0
- package/test-e2e/node_modules/postcss/lib/no-work-result.d.ts +45 -0
- package/test-e2e/node_modules/postcss/lib/no-work-result.js +137 -0
- package/test-e2e/node_modules/postcss/lib/node.d.ts +555 -0
- package/test-e2e/node_modules/postcss/lib/node.js +449 -0
- package/test-e2e/node_modules/postcss/lib/parse.d.ts +9 -0
- package/test-e2e/node_modules/postcss/lib/parse.js +42 -0
- package/test-e2e/node_modules/postcss/lib/parser.js +611 -0
- package/test-e2e/node_modules/postcss/lib/postcss.d.mts +66 -0
- package/test-e2e/node_modules/postcss/lib/postcss.d.ts +456 -0
- package/test-e2e/node_modules/postcss/lib/postcss.js +101 -0
- package/test-e2e/node_modules/postcss/lib/postcss.mjs +30 -0
- package/test-e2e/node_modules/postcss/lib/previous-map.d.ts +80 -0
- package/test-e2e/node_modules/postcss/lib/previous-map.js +145 -0
- package/test-e2e/node_modules/postcss/lib/processor.d.ts +114 -0
- package/test-e2e/node_modules/postcss/lib/processor.js +67 -0
- package/test-e2e/node_modules/postcss/lib/result.d.ts +204 -0
- package/test-e2e/node_modules/postcss/lib/result.js +42 -0
- package/test-e2e/node_modules/postcss/lib/root.d.ts +86 -0
- package/test-e2e/node_modules/postcss/lib/root.js +61 -0
- package/test-e2e/node_modules/postcss/lib/rule.d.ts +126 -0
- package/test-e2e/node_modules/postcss/lib/rule.js +27 -0
- package/test-e2e/node_modules/postcss/lib/stringifier.d.ts +45 -0
- package/test-e2e/node_modules/postcss/lib/stringifier.js +353 -0
- package/test-e2e/node_modules/postcss/lib/stringify.d.ts +9 -0
- package/test-e2e/node_modules/postcss/lib/stringify.js +11 -0
- package/test-e2e/node_modules/postcss/lib/symbols.js +5 -0
- package/test-e2e/node_modules/postcss/lib/terminal-highlight.js +70 -0
- package/test-e2e/node_modules/postcss/lib/tokenize.js +266 -0
- package/test-e2e/node_modules/postcss/lib/warn-once.js +13 -0
- package/test-e2e/node_modules/postcss/lib/warning.d.ts +146 -0
- package/test-e2e/node_modules/postcss/lib/warning.js +37 -0
- package/test-e2e/node_modules/postcss/package.json +88 -0
- package/test-e2e/node_modules/rolldown/LICENSE +25 -0
- package/test-e2e/node_modules/rolldown/README.md +11 -0
- package/test-e2e/node_modules/rolldown/bin/cli.mjs +2 -0
- package/test-e2e/node_modules/rolldown/dist/cli.d.mts +1 -0
- package/test-e2e/node_modules/rolldown/dist/cli.mjs +1191 -0
- package/test-e2e/node_modules/rolldown/dist/config.d.mts +14 -0
- package/test-e2e/node_modules/rolldown/dist/config.mjs +4 -0
- package/test-e2e/node_modules/rolldown/dist/experimental-index.d.mts +253 -0
- package/test-e2e/node_modules/rolldown/dist/experimental-index.mjs +320 -0
- package/test-e2e/node_modules/rolldown/dist/experimental-runtime-types.d.ts +98 -0
- package/test-e2e/node_modules/rolldown/dist/filter-index.d.mts +196 -0
- package/test-e2e/node_modules/rolldown/dist/filter-index.mjs +386 -0
- package/test-e2e/node_modules/rolldown/dist/get-log-filter.d.mts +3 -0
- package/test-e2e/node_modules/rolldown/dist/get-log-filter.mjs +68 -0
- package/test-e2e/node_modules/rolldown/dist/index.d.mts +4 -0
- package/test-e2e/node_modules/rolldown/dist/index.mjs +50 -0
- package/test-e2e/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +1 -0
- package/test-e2e/node_modules/rolldown/dist/parallel-plugin-worker.mjs +28 -0
- package/test-e2e/node_modules/rolldown/dist/parallel-plugin.d.mts +13 -0
- package/test-e2e/node_modules/rolldown/dist/parallel-plugin.mjs +6 -0
- package/test-e2e/node_modules/rolldown/dist/parse-ast-index.d.mts +32 -0
- package/test-e2e/node_modules/rolldown/dist/parse-ast-index.mjs +60 -0
- package/test-e2e/node_modules/rolldown/dist/plugins-index.d.mts +33 -0
- package/test-e2e/node_modules/rolldown/dist/plugins-index.mjs +40 -0
- package/test-e2e/node_modules/rolldown/dist/shared/binding-DUEnSb0A.d.mts +1872 -0
- package/test-e2e/node_modules/rolldown/dist/shared/binding-s-V_wTpj.mjs +582 -0
- package/test-e2e/node_modules/rolldown/dist/shared/bindingify-input-options-DYpBf1OG.mjs +2235 -0
- package/test-e2e/node_modules/rolldown/dist/shared/constructors-BaEBnHl3.mjs +68 -0
- package/test-e2e/node_modules/rolldown/dist/shared/constructors-DYemMpPL.d.mts +37 -0
- package/test-e2e/node_modules/rolldown/dist/shared/define-config-DJOr6Iwt.mjs +6 -0
- package/test-e2e/node_modules/rolldown/dist/shared/define-config-DhJZwTRw.d.mts +3795 -0
- package/test-e2e/node_modules/rolldown/dist/shared/error-w0u7biK-.mjs +85 -0
- package/test-e2e/node_modules/rolldown/dist/shared/get-log-filter-semyr3Lj.d.mts +35 -0
- package/test-e2e/node_modules/rolldown/dist/shared/load-config-pmbgQdFU.mjs +120 -0
- package/test-e2e/node_modules/rolldown/dist/shared/logging-C6h4g8dA.d.mts +50 -0
- package/test-e2e/node_modules/rolldown/dist/shared/logs-D80CXhvg.mjs +180 -0
- package/test-e2e/node_modules/rolldown/dist/shared/misc-DJYbNKZX.mjs +21 -0
- package/test-e2e/node_modules/rolldown/dist/shared/normalize-string-or-regex-CVvpepxa.mjs +66 -0
- package/test-e2e/node_modules/rolldown/dist/shared/parse-BywQARUG.mjs +74 -0
- package/test-e2e/node_modules/rolldown/dist/shared/prompt-BYQIwEjg.mjs +845 -0
- package/test-e2e/node_modules/rolldown/dist/shared/resolve-tsconfig-CNjJwuKB.mjs +113 -0
- package/test-e2e/node_modules/rolldown/dist/shared/rolldown-BLMDGLfI.mjs +40 -0
- package/test-e2e/node_modules/rolldown/dist/shared/rolldown-build-DtGk-m96.mjs +3321 -0
- package/test-e2e/node_modules/rolldown/dist/shared/transform-Kz3D2LbX.d.mts +149 -0
- package/test-e2e/node_modules/rolldown/dist/shared/watch-Cixa7HbR.mjs +374 -0
- package/test-e2e/node_modules/rolldown/dist/utils-index.d.mts +376 -0
- package/test-e2e/node_modules/rolldown/dist/utils-index.mjs +2414 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/LICENSE +25 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/README.md +83 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts +90 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +256 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts +28 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +75 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/index.d.ts +3 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/index.js +3 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts +71 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +70 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/index.d.ts +1 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/index.js +1 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/utils.d.ts +2 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/utils.js +17 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/package.json +37 -0
- package/test-e2e/node_modules/rolldown/package.json +153 -0
- package/test-e2e/node_modules/source-map-js/LICENSE +28 -0
- package/test-e2e/node_modules/source-map-js/README.md +765 -0
- package/test-e2e/node_modules/source-map-js/lib/array-set.js +121 -0
- package/test-e2e/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/test-e2e/node_modules/source-map-js/lib/base64.js +67 -0
- package/test-e2e/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/test-e2e/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/test-e2e/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/test-e2e/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
- package/test-e2e/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/test-e2e/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
- package/test-e2e/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/test-e2e/node_modules/source-map-js/lib/source-node.d.ts +1 -0
- package/test-e2e/node_modules/source-map-js/lib/source-node.js +413 -0
- package/test-e2e/node_modules/source-map-js/lib/util.js +594 -0
- package/test-e2e/node_modules/source-map-js/package.json +71 -0
- package/test-e2e/node_modules/source-map-js/source-map.d.ts +104 -0
- package/test-e2e/node_modules/source-map-js/source-map.js +8 -0
- package/test-e2e/node_modules/tinyglobby/LICENSE +21 -0
- package/test-e2e/node_modules/tinyglobby/README.md +25 -0
- package/test-e2e/node_modules/tinyglobby/dist/index.cjs +334 -0
- package/test-e2e/node_modules/tinyglobby/dist/index.d.cts +148 -0
- package/test-e2e/node_modules/tinyglobby/dist/index.d.mts +148 -0
- package/test-e2e/node_modules/tinyglobby/dist/index.mjs +306 -0
- package/test-e2e/node_modules/tinyglobby/package.json +73 -0
- package/test-e2e/node_modules/vite/LICENSE.md +2230 -0
- package/test-e2e/node_modules/vite/README.md +20 -0
- package/test-e2e/node_modules/vite/bin/openChrome.js +68 -0
- package/test-e2e/node_modules/vite/bin/vite.js +79 -0
- package/test-e2e/node_modules/vite/client.d.ts +282 -0
- package/test-e2e/node_modules/vite/dist/client/client.mjs +1235 -0
- package/test-e2e/node_modules/vite/dist/client/env.mjs +18 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/build.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/build2.js +5378 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/chunk.js +37 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/config.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/dist.js +6719 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/lib.js +371 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/logger.js +322 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +96 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/node.js +34785 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/optimizer.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/postcss-import.js +467 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/preview.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/server.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/cli.js +837 -0
- package/test-e2e/node_modules/vite/dist/node/index.d.ts +3867 -0
- package/test-e2e/node_modules/vite/dist/node/index.js +3 -0
- package/test-e2e/node_modules/vite/dist/node/internal.d.ts +2 -0
- package/test-e2e/node_modules/vite/dist/node/internal.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/module-runner.d.ts +315 -0
- package/test-e2e/node_modules/vite/dist/node/module-runner.js +1262 -0
- package/test-e2e/node_modules/vite/misc/false.js +1 -0
- package/test-e2e/node_modules/vite/misc/true.js +1 -0
- package/test-e2e/node_modules/vite/package.json +192 -0
- package/test-e2e/node_modules/vite/types/customEvent.d.ts +79 -0
- package/test-e2e/node_modules/vite/types/hmrPayload.d.ts +80 -0
- package/test-e2e/node_modules/vite/types/hot.d.ts +39 -0
- package/test-e2e/node_modules/vite/types/import-meta.d.ts +5 -0
- package/test-e2e/node_modules/vite/types/importGlob.d.ts +89 -0
- package/test-e2e/node_modules/vite/types/importMeta.d.ts +30 -0
- package/test-e2e/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +44 -0
- package/test-e2e/node_modules/vite/types/internal/esbuildOptions.d.ts +28 -0
- package/test-e2e/node_modules/vite/types/internal/lightningcssOptions.d.ts +18 -0
- package/test-e2e/node_modules/vite/types/internal/rollupTypeCompat.d.ts +24 -0
- package/test-e2e/node_modules/vite/types/internal/terserOptions.d.ts +11 -0
- package/test-e2e/node_modules/vite/types/metadata.d.ts +47 -0
- package/test-e2e/node_modules/vue/LICENSE +21 -0
- package/test-e2e/node_modules/vue/README.md +58 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.browser.js +1 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.browser.mjs +1 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.d.mts +1 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.d.ts +1 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.js +3 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.mjs +3 -0
- package/test-e2e/node_modules/vue/compiler-sfc/package.json +4 -0
- package/test-e2e/node_modules/vue/compiler-sfc/register-ts.js +3 -0
- package/test-e2e/node_modules/vue/dist/vue.cjs.js +80 -0
- package/test-e2e/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/test-e2e/node_modules/vue/dist/vue.d.mts +7 -0
- package/test-e2e/node_modules/vue/dist/vue.d.ts +7 -0
- package/test-e2e/node_modules/vue/dist/vue.esm-browser.js +18708 -0
- package/test-e2e/node_modules/vue/dist/vue.esm-browser.prod.js +13 -0
- package/test-e2e/node_modules/vue/dist/vue.esm-bundler.js +71 -0
- package/test-e2e/node_modules/vue/dist/vue.global.js +18588 -0
- package/test-e2e/node_modules/vue/dist/vue.global.prod.js +13 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.esm-browser.js +12817 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.esm-browser.prod.js +7 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.esm-bundler.js +26 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.global.js +12871 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.global.prod.js +7 -0
- package/test-e2e/node_modules/vue/index.js +7 -0
- package/test-e2e/node_modules/vue/index.mjs +1 -0
- package/test-e2e/node_modules/vue/jsx-runtime/index.d.ts +25 -0
- package/test-e2e/node_modules/vue/jsx-runtime/index.js +15 -0
- package/test-e2e/node_modules/vue/jsx-runtime/index.mjs +12 -0
- package/test-e2e/node_modules/vue/jsx-runtime/package.json +5 -0
- package/test-e2e/node_modules/vue/jsx.d.ts +22 -0
- package/test-e2e/node_modules/vue/package.json +112 -0
- package/test-e2e/node_modules/vue/server-renderer/index.d.mts +1 -0
- package/test-e2e/node_modules/vue/server-renderer/index.d.ts +1 -0
- package/test-e2e/node_modules/vue/server-renderer/index.js +1 -0
- package/test-e2e/node_modules/vue/server-renderer/index.mjs +1 -0
- package/test-e2e/node_modules/vue/server-renderer/package.json +4 -0
- package/test-e2e/package-lock.json +1164 -0
- package/test-e2e/package.json +17 -0
- package/test-e2e/vite.config.js +17 -0
- package/test-results/.last-run.json +4 -0
- package/vite.config.js +12 -2
- package/vitest.config.js +1 -1
- package/cypress/support/component-index.html +0 -11
- package/test/01-general.cy.js +0 -348
- /package/{test → test-e2e}/blue.vue +0 -0
- /package/{test → test-e2e}/dummy.vue +0 -0
- /package/{test → test-e2e}/gray.vue +0 -0
- /package/{test → test-e2e}/red.vue +0 -0
|
@@ -0,0 +1,2235 @@
|
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-s-V_wTpj.mjs";
|
|
2
|
+
import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-D80CXhvg.mjs";
|
|
3
|
+
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CVvpepxa.mjs";
|
|
4
|
+
import { a as unreachable, o as unsupported, r as noop, t as arraify } from "./misc-DJYbNKZX.mjs";
|
|
5
|
+
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-w0u7biK-.mjs";
|
|
6
|
+
import { parseAst } from "../parse-ast-index.mjs";
|
|
7
|
+
import path from "node:path";
|
|
8
|
+
import * as filter from "@rolldown/pluginutils";
|
|
9
|
+
import fsp from "node:fs/promises";
|
|
10
|
+
//#region package.json
|
|
11
|
+
var version = "1.0.0-rc.15";
|
|
12
|
+
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/constants/version.ts
|
|
15
|
+
/**
|
|
16
|
+
* The version of Rolldown.
|
|
17
|
+
* @example `'1.0.0'`
|
|
18
|
+
*
|
|
19
|
+
* @category Plugin APIs
|
|
20
|
+
*/
|
|
21
|
+
const VERSION = version;
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/constants/index.ts
|
|
24
|
+
/**
|
|
25
|
+
* Runtime helper module ID
|
|
26
|
+
*/
|
|
27
|
+
const RUNTIME_MODULE_ID = "\0rolldown/runtime.js";
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/log/logging.ts
|
|
30
|
+
const LOG_LEVEL_SILENT = "silent";
|
|
31
|
+
const LOG_LEVEL_ERROR = "error";
|
|
32
|
+
const LOG_LEVEL_WARN = "warn";
|
|
33
|
+
const LOG_LEVEL_INFO = "info";
|
|
34
|
+
const LOG_LEVEL_DEBUG = "debug";
|
|
35
|
+
const logLevelPriority = {
|
|
36
|
+
[LOG_LEVEL_DEBUG]: 0,
|
|
37
|
+
[LOG_LEVEL_INFO]: 1,
|
|
38
|
+
[LOG_LEVEL_WARN]: 2,
|
|
39
|
+
[LOG_LEVEL_SILENT]: 3
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/log/log-handler.ts
|
|
43
|
+
const normalizeLog = (log) => typeof log === "string" ? { message: log } : typeof log === "function" ? normalizeLog(log()) : log;
|
|
44
|
+
function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
45
|
+
if (logLevelPriority[level] < logLevelPriority[logLevel]) return noop;
|
|
46
|
+
return (log, pos) => {
|
|
47
|
+
if (pos != null) logger(LOG_LEVEL_WARN, logInvalidLogPosition(pluginName));
|
|
48
|
+
log = normalizeLog(log);
|
|
49
|
+
if (log.code && !log.pluginCode) log.pluginCode = log.code;
|
|
50
|
+
log.code = code;
|
|
51
|
+
log.plugin = pluginName;
|
|
52
|
+
logger(level, log);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/utils/normalize-hook.ts
|
|
57
|
+
function normalizeHook(hook) {
|
|
58
|
+
if (typeof hook === "function" || typeof hook === "string") return {
|
|
59
|
+
handler: hook,
|
|
60
|
+
options: {},
|
|
61
|
+
meta: {}
|
|
62
|
+
};
|
|
63
|
+
if (typeof hook === "object" && hook !== null) {
|
|
64
|
+
const { handler, order, ...options } = hook;
|
|
65
|
+
return {
|
|
66
|
+
handler,
|
|
67
|
+
options,
|
|
68
|
+
meta: { order }
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
unreachable("Invalid hook type");
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/plugin/minimal-plugin-context.ts
|
|
75
|
+
var MinimalPluginContextImpl = class {
|
|
76
|
+
info;
|
|
77
|
+
warn;
|
|
78
|
+
debug;
|
|
79
|
+
meta;
|
|
80
|
+
constructor(onLog, logLevel, pluginName, watchMode, hookName) {
|
|
81
|
+
this.pluginName = pluginName;
|
|
82
|
+
this.hookName = hookName;
|
|
83
|
+
this.debug = getLogHandler(LOG_LEVEL_DEBUG, "PLUGIN_LOG", onLog, pluginName, logLevel);
|
|
84
|
+
this.info = getLogHandler(LOG_LEVEL_INFO, "PLUGIN_LOG", onLog, pluginName, logLevel);
|
|
85
|
+
this.warn = getLogHandler(LOG_LEVEL_WARN, "PLUGIN_WARNING", onLog, pluginName, logLevel);
|
|
86
|
+
this.meta = {
|
|
87
|
+
rollupVersion: "4.23.0",
|
|
88
|
+
rolldownVersion: VERSION,
|
|
89
|
+
watchMode
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
error(e) {
|
|
93
|
+
return error(logPluginError(normalizeLog(e), this.pluginName, { hook: this.hookName }));
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/types/plain-object-like.ts
|
|
98
|
+
const LAZY_FIELDS_KEY = Symbol("__lazy_fields__");
|
|
99
|
+
/**
|
|
100
|
+
* Base class for classes that use `@lazyProp` decorated properties.
|
|
101
|
+
*
|
|
102
|
+
* **Design Pattern in Rolldown:**
|
|
103
|
+
* This is a common pattern in Rolldown due to its three-layer architecture:
|
|
104
|
+
* TypeScript API → NAPI Bindings → Rust Core
|
|
105
|
+
*
|
|
106
|
+
* **Why we use getters:**
|
|
107
|
+
* For performance - to lazily fetch data from Rust bindings only when needed,
|
|
108
|
+
* rather than eagerly fetching all data during object construction.
|
|
109
|
+
*
|
|
110
|
+
* **The problem:**
|
|
111
|
+
* Getters defined on class prototypes are non-enumerable by default, which breaks:
|
|
112
|
+
* - Object spread operators ({...obj})
|
|
113
|
+
* - Object.keys() and similar methods
|
|
114
|
+
* - Standard JavaScript object semantics
|
|
115
|
+
*
|
|
116
|
+
* **The solution:**
|
|
117
|
+
* This base class automatically converts `@lazyProp` decorated getters into
|
|
118
|
+
* own enumerable getters on each instance during construction.
|
|
119
|
+
*
|
|
120
|
+
* **Result:**
|
|
121
|
+
* Objects get both lazy-loading performance benefits AND plain JavaScript object behavior.
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* ```typescript
|
|
125
|
+
* class MyClass extends PlainObjectLike {
|
|
126
|
+
* @lazyProp
|
|
127
|
+
* get myProp() {
|
|
128
|
+
* return fetchFromRustBinding();
|
|
129
|
+
* }
|
|
130
|
+
* }
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
133
|
+
var PlainObjectLike = class {
|
|
134
|
+
constructor() {
|
|
135
|
+
setupLazyProperties(this);
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Set up lazy properties as own getters on an instance.
|
|
140
|
+
* This is called automatically by the `PlainObjectLike` base class constructor.
|
|
141
|
+
*
|
|
142
|
+
* @param instance - The instance to set up lazy properties on
|
|
143
|
+
* @internal
|
|
144
|
+
*/
|
|
145
|
+
function setupLazyProperties(instance) {
|
|
146
|
+
const lazyFields = instance.constructor[LAZY_FIELDS_KEY];
|
|
147
|
+
if (!lazyFields) return;
|
|
148
|
+
for (const [propertyKey, originalGetter] of lazyFields.entries()) {
|
|
149
|
+
let cachedValue;
|
|
150
|
+
let hasValue = false;
|
|
151
|
+
Object.defineProperty(instance, propertyKey, {
|
|
152
|
+
get() {
|
|
153
|
+
if (!hasValue) {
|
|
154
|
+
cachedValue = originalGetter.call(this);
|
|
155
|
+
hasValue = true;
|
|
156
|
+
}
|
|
157
|
+
return cachedValue;
|
|
158
|
+
},
|
|
159
|
+
enumerable: true,
|
|
160
|
+
configurable: true
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Get all lazy field names from a class instance.
|
|
166
|
+
*
|
|
167
|
+
* @param instance - Instance to inspect
|
|
168
|
+
* @returns Set of lazy property names
|
|
169
|
+
*/
|
|
170
|
+
function getLazyFields(instance) {
|
|
171
|
+
const lazyFields = instance.constructor[LAZY_FIELDS_KEY];
|
|
172
|
+
return lazyFields ? new Set(lazyFields.keys()) : /* @__PURE__ */ new Set();
|
|
173
|
+
}
|
|
174
|
+
//#endregion
|
|
175
|
+
//#region src/decorators/lazy.ts
|
|
176
|
+
/**
|
|
177
|
+
* Decorator that marks a getter as lazy-evaluated and cached.
|
|
178
|
+
*
|
|
179
|
+
* **What "lazy" means here:**
|
|
180
|
+
* 1. Data is lazily fetched from Rust bindings only when the property is accessed (not eagerly on construction)
|
|
181
|
+
* 2. Once fetched, the data is cached for subsequent accesses (performance optimization)
|
|
182
|
+
* 3. Despite being a getter, it behaves like a plain object property (enumerable, appears in Object.keys())
|
|
183
|
+
*
|
|
184
|
+
* **Important**: Properties decorated with `@lazyProp` are defined as own enumerable
|
|
185
|
+
* properties on each instance (not on the prototype). This ensures they:
|
|
186
|
+
* - Appear in Object.keys() and Object.getOwnPropertyNames()
|
|
187
|
+
* - Are included in object spreads ({...obj})
|
|
188
|
+
* - Are enumerable in for...in loops
|
|
189
|
+
*
|
|
190
|
+
* Classes using this decorator must extend `PlainObjectLike` base class.
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* ```typescript
|
|
194
|
+
* class MyClass extends PlainObjectLike {
|
|
195
|
+
* @lazyProp
|
|
196
|
+
* get expensiveValue() {
|
|
197
|
+
* return someExpensiveComputation();
|
|
198
|
+
* }
|
|
199
|
+
* }
|
|
200
|
+
* ```
|
|
201
|
+
*/
|
|
202
|
+
function lazyProp(target, propertyKey, descriptor) {
|
|
203
|
+
if (!target.constructor[LAZY_FIELDS_KEY]) target.constructor[LAZY_FIELDS_KEY] = /* @__PURE__ */ new Map();
|
|
204
|
+
const originalGetter = descriptor.get;
|
|
205
|
+
target.constructor[LAZY_FIELDS_KEY].set(propertyKey, originalGetter);
|
|
206
|
+
return {
|
|
207
|
+
enumerable: false,
|
|
208
|
+
configurable: true
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region src/utils/asset-source.ts
|
|
213
|
+
function transformAssetSource(bindingAssetSource) {
|
|
214
|
+
return bindingAssetSource.inner;
|
|
215
|
+
}
|
|
216
|
+
function bindingAssetSource(source) {
|
|
217
|
+
return { inner: source };
|
|
218
|
+
}
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region \0@oxc-project+runtime@0.124.0/helpers/decorate.js
|
|
221
|
+
function __decorate(decorators, target, key, desc) {
|
|
222
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
223
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
224
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
225
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
226
|
+
}
|
|
227
|
+
//#endregion
|
|
228
|
+
//#region src/types/output-asset-impl.ts
|
|
229
|
+
var OutputAssetImpl = class extends PlainObjectLike {
|
|
230
|
+
type = "asset";
|
|
231
|
+
constructor(bindingAsset) {
|
|
232
|
+
super();
|
|
233
|
+
this.bindingAsset = bindingAsset;
|
|
234
|
+
}
|
|
235
|
+
get fileName() {
|
|
236
|
+
return this.bindingAsset.getFileName();
|
|
237
|
+
}
|
|
238
|
+
get originalFileName() {
|
|
239
|
+
return this.bindingAsset.getOriginalFileName() || null;
|
|
240
|
+
}
|
|
241
|
+
get originalFileNames() {
|
|
242
|
+
return this.bindingAsset.getOriginalFileNames();
|
|
243
|
+
}
|
|
244
|
+
get name() {
|
|
245
|
+
return this.bindingAsset.getName() ?? void 0;
|
|
246
|
+
}
|
|
247
|
+
get names() {
|
|
248
|
+
return this.bindingAsset.getNames();
|
|
249
|
+
}
|
|
250
|
+
get source() {
|
|
251
|
+
return transformAssetSource(this.bindingAsset.getSource());
|
|
252
|
+
}
|
|
253
|
+
__rolldown_external_memory_handle__(keepDataAlive) {
|
|
254
|
+
if (keepDataAlive) this.#evaluateAllLazyFields();
|
|
255
|
+
return this.bindingAsset.dropInner();
|
|
256
|
+
}
|
|
257
|
+
#evaluateAllLazyFields() {
|
|
258
|
+
for (const field of getLazyFields(this)) this[field];
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
__decorate([lazyProp], OutputAssetImpl.prototype, "fileName", null);
|
|
262
|
+
__decorate([lazyProp], OutputAssetImpl.prototype, "originalFileName", null);
|
|
263
|
+
__decorate([lazyProp], OutputAssetImpl.prototype, "originalFileNames", null);
|
|
264
|
+
__decorate([lazyProp], OutputAssetImpl.prototype, "name", null);
|
|
265
|
+
__decorate([lazyProp], OutputAssetImpl.prototype, "names", null);
|
|
266
|
+
__decorate([lazyProp], OutputAssetImpl.prototype, "source", null);
|
|
267
|
+
//#endregion
|
|
268
|
+
//#region src/utils/transform-rendered-module.ts
|
|
269
|
+
function transformToRenderedModule(bindingRenderedModule) {
|
|
270
|
+
return {
|
|
271
|
+
get code() {
|
|
272
|
+
return bindingRenderedModule.code;
|
|
273
|
+
},
|
|
274
|
+
get renderedLength() {
|
|
275
|
+
return bindingRenderedModule.code?.length || 0;
|
|
276
|
+
},
|
|
277
|
+
get renderedExports() {
|
|
278
|
+
return bindingRenderedModule.renderedExports;
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
//#endregion
|
|
283
|
+
//#region src/utils/transform-rendered-chunk.ts
|
|
284
|
+
function transformRenderedChunk(chunk) {
|
|
285
|
+
let modules = null;
|
|
286
|
+
return {
|
|
287
|
+
type: "chunk",
|
|
288
|
+
get name() {
|
|
289
|
+
return chunk.name;
|
|
290
|
+
},
|
|
291
|
+
get isEntry() {
|
|
292
|
+
return chunk.isEntry;
|
|
293
|
+
},
|
|
294
|
+
get isDynamicEntry() {
|
|
295
|
+
return chunk.isDynamicEntry;
|
|
296
|
+
},
|
|
297
|
+
get facadeModuleId() {
|
|
298
|
+
return chunk.facadeModuleId;
|
|
299
|
+
},
|
|
300
|
+
get moduleIds() {
|
|
301
|
+
return chunk.moduleIds;
|
|
302
|
+
},
|
|
303
|
+
get exports() {
|
|
304
|
+
return chunk.exports;
|
|
305
|
+
},
|
|
306
|
+
get fileName() {
|
|
307
|
+
return chunk.fileName;
|
|
308
|
+
},
|
|
309
|
+
get imports() {
|
|
310
|
+
return chunk.imports;
|
|
311
|
+
},
|
|
312
|
+
get dynamicImports() {
|
|
313
|
+
return chunk.dynamicImports;
|
|
314
|
+
},
|
|
315
|
+
get modules() {
|
|
316
|
+
if (!modules) modules = transformChunkModules(chunk.modules);
|
|
317
|
+
return modules;
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
function transformChunkModules(modules) {
|
|
322
|
+
const result = {};
|
|
323
|
+
for (let i = 0; i < modules.values.length; i++) {
|
|
324
|
+
let key = modules.keys[i];
|
|
325
|
+
const mod = modules.values[i];
|
|
326
|
+
result[key] = transformToRenderedModule(mod);
|
|
327
|
+
}
|
|
328
|
+
return result;
|
|
329
|
+
}
|
|
330
|
+
//#endregion
|
|
331
|
+
//#region src/types/output-chunk-impl.ts
|
|
332
|
+
var OutputChunkImpl = class extends PlainObjectLike {
|
|
333
|
+
type = "chunk";
|
|
334
|
+
constructor(bindingChunk) {
|
|
335
|
+
super();
|
|
336
|
+
this.bindingChunk = bindingChunk;
|
|
337
|
+
}
|
|
338
|
+
get fileName() {
|
|
339
|
+
return this.bindingChunk.getFileName();
|
|
340
|
+
}
|
|
341
|
+
get name() {
|
|
342
|
+
return this.bindingChunk.getName();
|
|
343
|
+
}
|
|
344
|
+
get exports() {
|
|
345
|
+
return this.bindingChunk.getExports();
|
|
346
|
+
}
|
|
347
|
+
get isEntry() {
|
|
348
|
+
return this.bindingChunk.getIsEntry();
|
|
349
|
+
}
|
|
350
|
+
get facadeModuleId() {
|
|
351
|
+
return this.bindingChunk.getFacadeModuleId() || null;
|
|
352
|
+
}
|
|
353
|
+
get isDynamicEntry() {
|
|
354
|
+
return this.bindingChunk.getIsDynamicEntry();
|
|
355
|
+
}
|
|
356
|
+
get sourcemapFileName() {
|
|
357
|
+
return this.bindingChunk.getSourcemapFileName() || null;
|
|
358
|
+
}
|
|
359
|
+
get preliminaryFileName() {
|
|
360
|
+
return this.bindingChunk.getPreliminaryFileName();
|
|
361
|
+
}
|
|
362
|
+
get code() {
|
|
363
|
+
return this.bindingChunk.getCode();
|
|
364
|
+
}
|
|
365
|
+
get modules() {
|
|
366
|
+
return transformChunkModules(this.bindingChunk.getModules());
|
|
367
|
+
}
|
|
368
|
+
get imports() {
|
|
369
|
+
return this.bindingChunk.getImports();
|
|
370
|
+
}
|
|
371
|
+
get dynamicImports() {
|
|
372
|
+
return this.bindingChunk.getDynamicImports();
|
|
373
|
+
}
|
|
374
|
+
get moduleIds() {
|
|
375
|
+
return this.bindingChunk.getModuleIds();
|
|
376
|
+
}
|
|
377
|
+
get map() {
|
|
378
|
+
const mapString = this.bindingChunk.getMap();
|
|
379
|
+
return mapString ? transformToRollupSourceMap(mapString) : null;
|
|
380
|
+
}
|
|
381
|
+
__rolldown_external_memory_handle__(keepDataAlive) {
|
|
382
|
+
if (keepDataAlive) this.#evaluateAllLazyFields();
|
|
383
|
+
return this.bindingChunk.dropInner();
|
|
384
|
+
}
|
|
385
|
+
#evaluateAllLazyFields() {
|
|
386
|
+
for (const field of getLazyFields(this)) this[field];
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
__decorate([lazyProp], OutputChunkImpl.prototype, "fileName", null);
|
|
390
|
+
__decorate([lazyProp], OutputChunkImpl.prototype, "name", null);
|
|
391
|
+
__decorate([lazyProp], OutputChunkImpl.prototype, "exports", null);
|
|
392
|
+
__decorate([lazyProp], OutputChunkImpl.prototype, "isEntry", null);
|
|
393
|
+
__decorate([lazyProp], OutputChunkImpl.prototype, "facadeModuleId", null);
|
|
394
|
+
__decorate([lazyProp], OutputChunkImpl.prototype, "isDynamicEntry", null);
|
|
395
|
+
__decorate([lazyProp], OutputChunkImpl.prototype, "sourcemapFileName", null);
|
|
396
|
+
__decorate([lazyProp], OutputChunkImpl.prototype, "preliminaryFileName", null);
|
|
397
|
+
__decorate([lazyProp], OutputChunkImpl.prototype, "code", null);
|
|
398
|
+
__decorate([lazyProp], OutputChunkImpl.prototype, "modules", null);
|
|
399
|
+
__decorate([lazyProp], OutputChunkImpl.prototype, "imports", null);
|
|
400
|
+
__decorate([lazyProp], OutputChunkImpl.prototype, "dynamicImports", null);
|
|
401
|
+
__decorate([lazyProp], OutputChunkImpl.prototype, "moduleIds", null);
|
|
402
|
+
__decorate([lazyProp], OutputChunkImpl.prototype, "map", null);
|
|
403
|
+
//#endregion
|
|
404
|
+
//#region src/utils/transform-to-rollup-output.ts
|
|
405
|
+
function transformToRollupSourceMap(map) {
|
|
406
|
+
const obj = {
|
|
407
|
+
...JSON.parse(map),
|
|
408
|
+
toString() {
|
|
409
|
+
return JSON.stringify(obj);
|
|
410
|
+
},
|
|
411
|
+
toUrl() {
|
|
412
|
+
return `data:application/json;charset=utf-8;base64,${Buffer.from(obj.toString(), "utf-8").toString("base64")}`;
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
return obj;
|
|
416
|
+
}
|
|
417
|
+
function transformToRollupOutputChunk(bindingChunk) {
|
|
418
|
+
return new OutputChunkImpl(bindingChunk);
|
|
419
|
+
}
|
|
420
|
+
function transformToMutableRollupOutputChunk(bindingChunk, changed) {
|
|
421
|
+
const chunk = {
|
|
422
|
+
type: "chunk",
|
|
423
|
+
get code() {
|
|
424
|
+
return bindingChunk.getCode();
|
|
425
|
+
},
|
|
426
|
+
fileName: bindingChunk.getFileName(),
|
|
427
|
+
name: bindingChunk.getName(),
|
|
428
|
+
get modules() {
|
|
429
|
+
return transformChunkModules(bindingChunk.getModules());
|
|
430
|
+
},
|
|
431
|
+
get imports() {
|
|
432
|
+
return bindingChunk.getImports();
|
|
433
|
+
},
|
|
434
|
+
get dynamicImports() {
|
|
435
|
+
return bindingChunk.getDynamicImports();
|
|
436
|
+
},
|
|
437
|
+
exports: bindingChunk.getExports(),
|
|
438
|
+
isEntry: bindingChunk.getIsEntry(),
|
|
439
|
+
facadeModuleId: bindingChunk.getFacadeModuleId() || null,
|
|
440
|
+
isDynamicEntry: bindingChunk.getIsDynamicEntry(),
|
|
441
|
+
get moduleIds() {
|
|
442
|
+
return bindingChunk.getModuleIds();
|
|
443
|
+
},
|
|
444
|
+
get map() {
|
|
445
|
+
const map = bindingChunk.getMap();
|
|
446
|
+
return map ? transformToRollupSourceMap(map) : null;
|
|
447
|
+
},
|
|
448
|
+
sourcemapFileName: bindingChunk.getSourcemapFileName() || null,
|
|
449
|
+
preliminaryFileName: bindingChunk.getPreliminaryFileName()
|
|
450
|
+
};
|
|
451
|
+
const cache = {};
|
|
452
|
+
return new Proxy(chunk, {
|
|
453
|
+
get(target, p) {
|
|
454
|
+
if (p in cache) return cache[p];
|
|
455
|
+
const value = target[p];
|
|
456
|
+
cache[p] = value;
|
|
457
|
+
return value;
|
|
458
|
+
},
|
|
459
|
+
set(_target, p, newValue) {
|
|
460
|
+
cache[p] = newValue;
|
|
461
|
+
changed.updated.add(bindingChunk.getFileName());
|
|
462
|
+
return true;
|
|
463
|
+
},
|
|
464
|
+
has(target, p) {
|
|
465
|
+
if (p in cache) return true;
|
|
466
|
+
return p in target;
|
|
467
|
+
}
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
function transformToRollupOutputAsset(bindingAsset) {
|
|
471
|
+
return new OutputAssetImpl(bindingAsset);
|
|
472
|
+
}
|
|
473
|
+
function transformToMutableRollupOutputAsset(bindingAsset, changed) {
|
|
474
|
+
const asset = {
|
|
475
|
+
type: "asset",
|
|
476
|
+
fileName: bindingAsset.getFileName(),
|
|
477
|
+
originalFileName: bindingAsset.getOriginalFileName() || null,
|
|
478
|
+
originalFileNames: bindingAsset.getOriginalFileNames(),
|
|
479
|
+
get source() {
|
|
480
|
+
return transformAssetSource(bindingAsset.getSource());
|
|
481
|
+
},
|
|
482
|
+
name: bindingAsset.getName() ?? void 0,
|
|
483
|
+
names: bindingAsset.getNames()
|
|
484
|
+
};
|
|
485
|
+
const cache = {};
|
|
486
|
+
return new Proxy(asset, {
|
|
487
|
+
get(target, p) {
|
|
488
|
+
if (p in cache) return cache[p];
|
|
489
|
+
const value = target[p];
|
|
490
|
+
cache[p] = value;
|
|
491
|
+
return value;
|
|
492
|
+
},
|
|
493
|
+
set(_target, p, newValue) {
|
|
494
|
+
cache[p] = newValue;
|
|
495
|
+
changed.updated.add(bindingAsset.getFileName());
|
|
496
|
+
return true;
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
function transformToRollupOutput(output) {
|
|
501
|
+
const { chunks, assets } = output;
|
|
502
|
+
return { output: [...chunks.map((chunk) => transformToRollupOutputChunk(chunk)), ...assets.map((asset) => transformToRollupOutputAsset(asset))] };
|
|
503
|
+
}
|
|
504
|
+
function transformToMutableRollupOutput(output, changed) {
|
|
505
|
+
const { chunks, assets } = output;
|
|
506
|
+
return { output: [...chunks.map((chunk) => transformToMutableRollupOutputChunk(chunk, changed)), ...assets.map((asset) => transformToMutableRollupOutputAsset(asset, changed))] };
|
|
507
|
+
}
|
|
508
|
+
function transformToOutputBundle(context, output, changed) {
|
|
509
|
+
const bundle = Object.fromEntries(transformToMutableRollupOutput(output, changed).output.map((item) => [item.fileName, item]));
|
|
510
|
+
return new Proxy(bundle, {
|
|
511
|
+
set(_target, _p, _newValue, _receiver) {
|
|
512
|
+
const originalStackTraceLimit = Error.stackTraceLimit;
|
|
513
|
+
Error.stackTraceLimit = 2;
|
|
514
|
+
const message = "This plugin assigns to bundle variable. This is discouraged by Rollup and is not supported by Rolldown. This will be ignored. https://rollupjs.org/plugin-development/#generatebundle:~:text=DANGER,this.emitFile.";
|
|
515
|
+
const stack = new Error(message).stack ?? message;
|
|
516
|
+
Error.stackTraceLimit = originalStackTraceLimit;
|
|
517
|
+
context.warn({
|
|
518
|
+
message: stack,
|
|
519
|
+
code: "UNSUPPORTED_BUNDLE_ASSIGNMENT"
|
|
520
|
+
});
|
|
521
|
+
return true;
|
|
522
|
+
},
|
|
523
|
+
deleteProperty(target, property) {
|
|
524
|
+
if (typeof property === "string") changed.deleted.add(property);
|
|
525
|
+
return true;
|
|
526
|
+
}
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
function collectChangedBundle(changed, bundle) {
|
|
530
|
+
const changes = {};
|
|
531
|
+
for (const key in bundle) {
|
|
532
|
+
if (changed.deleted.has(key) || !changed.updated.has(key)) continue;
|
|
533
|
+
const item = bundle[key];
|
|
534
|
+
if (item.type === "asset") changes[key] = {
|
|
535
|
+
filename: item.fileName,
|
|
536
|
+
originalFileNames: item.originalFileNames,
|
|
537
|
+
source: bindingAssetSource(item.source),
|
|
538
|
+
names: item.names
|
|
539
|
+
};
|
|
540
|
+
else changes[key] = {
|
|
541
|
+
code: item.code,
|
|
542
|
+
filename: item.fileName,
|
|
543
|
+
name: item.name,
|
|
544
|
+
isEntry: item.isEntry,
|
|
545
|
+
exports: item.exports,
|
|
546
|
+
modules: {},
|
|
547
|
+
imports: item.imports,
|
|
548
|
+
dynamicImports: item.dynamicImports,
|
|
549
|
+
facadeModuleId: item.facadeModuleId || void 0,
|
|
550
|
+
isDynamicEntry: item.isDynamicEntry,
|
|
551
|
+
moduleIds: item.moduleIds,
|
|
552
|
+
map: bindingifySourcemap(item.map),
|
|
553
|
+
sourcemapFilename: item.sourcemapFileName || void 0,
|
|
554
|
+
preliminaryFilename: item.preliminaryFileName
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
return {
|
|
558
|
+
changes,
|
|
559
|
+
deleted: changed.deleted
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
//#endregion
|
|
563
|
+
//#region src/binding-magic-string.ts
|
|
564
|
+
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
565
|
+
Object.defineProperty(import_binding.BindingMagicString.prototype, "isRolldownMagicString", {
|
|
566
|
+
value: true,
|
|
567
|
+
writable: false,
|
|
568
|
+
configurable: false
|
|
569
|
+
});
|
|
570
|
+
function assertString(content, msg) {
|
|
571
|
+
if (typeof content !== "string") throw new TypeError(msg);
|
|
572
|
+
}
|
|
573
|
+
const nativeAppend = import_binding.BindingMagicString.prototype.append;
|
|
574
|
+
const nativePrepend = import_binding.BindingMagicString.prototype.prepend;
|
|
575
|
+
const nativeAppendLeft = import_binding.BindingMagicString.prototype.appendLeft;
|
|
576
|
+
const nativeAppendRight = import_binding.BindingMagicString.prototype.appendRight;
|
|
577
|
+
const nativePrependLeft = import_binding.BindingMagicString.prototype.prependLeft;
|
|
578
|
+
const nativePrependRight = import_binding.BindingMagicString.prototype.prependRight;
|
|
579
|
+
const nativeOverwrite = import_binding.BindingMagicString.prototype.overwrite;
|
|
580
|
+
const nativeUpdate = import_binding.BindingMagicString.prototype.update;
|
|
581
|
+
import_binding.BindingMagicString.prototype.append = function(content) {
|
|
582
|
+
assertString(content, "outro content must be a string");
|
|
583
|
+
return nativeAppend.call(this, content);
|
|
584
|
+
};
|
|
585
|
+
import_binding.BindingMagicString.prototype.prepend = function(content) {
|
|
586
|
+
assertString(content, "outro content must be a string");
|
|
587
|
+
return nativePrepend.call(this, content);
|
|
588
|
+
};
|
|
589
|
+
import_binding.BindingMagicString.prototype.appendLeft = function(index, content) {
|
|
590
|
+
assertString(content, "inserted content must be a string");
|
|
591
|
+
return nativeAppendLeft.call(this, index, content);
|
|
592
|
+
};
|
|
593
|
+
import_binding.BindingMagicString.prototype.appendRight = function(index, content) {
|
|
594
|
+
assertString(content, "inserted content must be a string");
|
|
595
|
+
return nativeAppendRight.call(this, index, content);
|
|
596
|
+
};
|
|
597
|
+
import_binding.BindingMagicString.prototype.prependLeft = function(index, content) {
|
|
598
|
+
assertString(content, "inserted content must be a string");
|
|
599
|
+
return nativePrependLeft.call(this, index, content);
|
|
600
|
+
};
|
|
601
|
+
import_binding.BindingMagicString.prototype.prependRight = function(index, content) {
|
|
602
|
+
assertString(content, "inserted content must be a string");
|
|
603
|
+
return nativePrependRight.call(this, index, content);
|
|
604
|
+
};
|
|
605
|
+
import_binding.BindingMagicString.prototype.overwrite = function(start, end, content, options) {
|
|
606
|
+
assertString(content, "replacement content must be a string");
|
|
607
|
+
return nativeOverwrite.call(this, start, end, content, options);
|
|
608
|
+
};
|
|
609
|
+
import_binding.BindingMagicString.prototype.update = function(start, end, content, options) {
|
|
610
|
+
assertString(content, "replacement content must be a string");
|
|
611
|
+
return nativeUpdate.call(this, start, end, content, options);
|
|
612
|
+
};
|
|
613
|
+
const nativeReplace = import_binding.BindingMagicString.prototype.replace;
|
|
614
|
+
const nativeReplaceAll = import_binding.BindingMagicString.prototype.replaceAll;
|
|
615
|
+
import_binding.BindingMagicString.prototype.replace = function(searchValue, replacement) {
|
|
616
|
+
if (typeof searchValue === "string") return nativeReplace.call(this, searchValue, replacement);
|
|
617
|
+
if (searchValue.global) searchValue.lastIndex = 0;
|
|
618
|
+
const lastMatchEnd = this.replaceRegex(searchValue, replacement);
|
|
619
|
+
if (searchValue.global) searchValue.lastIndex = 0;
|
|
620
|
+
else if (searchValue.sticky) searchValue.lastIndex = lastMatchEnd === -1 ? 0 : lastMatchEnd;
|
|
621
|
+
return this;
|
|
622
|
+
};
|
|
623
|
+
import_binding.BindingMagicString.prototype.replaceAll = function(searchValue, replacement) {
|
|
624
|
+
if (typeof searchValue === "string") return nativeReplaceAll.call(this, searchValue, replacement);
|
|
625
|
+
if (!searchValue.global) throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");
|
|
626
|
+
searchValue.lastIndex = 0;
|
|
627
|
+
this.replaceRegex(searchValue, replacement);
|
|
628
|
+
searchValue.lastIndex = 0;
|
|
629
|
+
return this;
|
|
630
|
+
};
|
|
631
|
+
/**
|
|
632
|
+
* A native MagicString implementation powered by Rust.
|
|
633
|
+
*
|
|
634
|
+
* @experimental
|
|
635
|
+
*/
|
|
636
|
+
const RolldownMagicString = import_binding.BindingMagicString;
|
|
637
|
+
//#endregion
|
|
638
|
+
//#region src/utils/transform-module-info.ts
|
|
639
|
+
function transformModuleInfo(info, option) {
|
|
640
|
+
return {
|
|
641
|
+
get ast() {
|
|
642
|
+
return unsupported("ModuleInfo#ast");
|
|
643
|
+
},
|
|
644
|
+
get code() {
|
|
645
|
+
return info.code;
|
|
646
|
+
},
|
|
647
|
+
id: info.id,
|
|
648
|
+
importers: info.importers,
|
|
649
|
+
dynamicImporters: info.dynamicImporters,
|
|
650
|
+
importedIds: info.importedIds,
|
|
651
|
+
dynamicallyImportedIds: info.dynamicallyImportedIds,
|
|
652
|
+
exports: info.exports,
|
|
653
|
+
isEntry: info.isEntry,
|
|
654
|
+
inputFormat: info.inputFormat,
|
|
655
|
+
...option
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
//#endregion
|
|
659
|
+
//#region src/utils/transform-sourcemap.ts
|
|
660
|
+
function isEmptySourcemapFiled(array) {
|
|
661
|
+
if (!array) return true;
|
|
662
|
+
if (array.length === 0 || !array[0]) return true;
|
|
663
|
+
return false;
|
|
664
|
+
}
|
|
665
|
+
function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
|
|
666
|
+
if (!rawMap) return;
|
|
667
|
+
let map = typeof rawMap === "object" ? rawMap : JSON.parse(rawMap);
|
|
668
|
+
if (isEmptySourcemapFiled(map.sourcesContent)) map.sourcesContent = [originalCode];
|
|
669
|
+
if (isEmptySourcemapFiled(map.sources) || map.sources && map.sources.length === 1 && map.sources[0] !== id) map.sources = [id];
|
|
670
|
+
return map;
|
|
671
|
+
}
|
|
672
|
+
//#endregion
|
|
673
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
|
|
674
|
+
function e(e, t, n) {
|
|
675
|
+
let r = (n) => e(n, ...t);
|
|
676
|
+
return n === void 0 ? r : Object.assign(r, {
|
|
677
|
+
lazy: n,
|
|
678
|
+
lazyArgs: t
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
//#endregion
|
|
682
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/purry.js
|
|
683
|
+
function t$1(t, n, r) {
|
|
684
|
+
let i = t.length - n.length;
|
|
685
|
+
if (i === 0) return t(...n);
|
|
686
|
+
if (i === 1) return e(t, n, r);
|
|
687
|
+
throw Error(`Wrong number of arguments`);
|
|
688
|
+
}
|
|
689
|
+
//#endregion
|
|
690
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/partition.js
|
|
691
|
+
function t(...t) {
|
|
692
|
+
return t$1(n, t);
|
|
693
|
+
}
|
|
694
|
+
const n = (e, t) => {
|
|
695
|
+
let n = [[], []];
|
|
696
|
+
for (let [r, i] of e.entries()) t(i, r, e) ? n[0].push(i) : n[1].push(i);
|
|
697
|
+
return n;
|
|
698
|
+
};
|
|
699
|
+
//#endregion
|
|
700
|
+
//#region src/plugin/bindingify-hook-filter.ts
|
|
701
|
+
function generalHookFilterMatcherToFilterExprs(matcher, stringKind) {
|
|
702
|
+
if (typeof matcher === "string" || matcher instanceof RegExp) return [filter.include(generateAtomMatcher(stringKind, matcher))];
|
|
703
|
+
if (Array.isArray(matcher)) return matcher.map((m) => filter.include(generateAtomMatcher(stringKind, m)));
|
|
704
|
+
let ret = [];
|
|
705
|
+
if (matcher.exclude) ret.push(...arraify(matcher.exclude).map((m) => filter.exclude(generateAtomMatcher(stringKind, m))));
|
|
706
|
+
if (matcher.include) ret.push(...arraify(matcher.include).map((m) => filter.include(generateAtomMatcher(stringKind, m))));
|
|
707
|
+
return ret;
|
|
708
|
+
}
|
|
709
|
+
function generateAtomMatcher(kind, matcher) {
|
|
710
|
+
return kind === "code" ? filter.code(matcher) : filter.id(matcher);
|
|
711
|
+
}
|
|
712
|
+
function transformFilterMatcherToFilterExprs(filterOption) {
|
|
713
|
+
if (!filterOption) return;
|
|
714
|
+
if (Array.isArray(filterOption)) return filterOption;
|
|
715
|
+
const { id, code, moduleType } = filterOption;
|
|
716
|
+
let ret = [];
|
|
717
|
+
let idIncludes = [];
|
|
718
|
+
let idExcludes = [];
|
|
719
|
+
let codeIncludes = [];
|
|
720
|
+
let codeExcludes = [];
|
|
721
|
+
if (id) [idIncludes, idExcludes] = t(generalHookFilterMatcherToFilterExprs(id, "id") ?? [], (m) => m.kind === "include");
|
|
722
|
+
if (code) [codeIncludes, codeExcludes] = t(generalHookFilterMatcherToFilterExprs(code, "code") ?? [], (m) => m.kind === "include");
|
|
723
|
+
ret.push(...idExcludes);
|
|
724
|
+
ret.push(...codeExcludes);
|
|
725
|
+
let andExprList = [];
|
|
726
|
+
if (moduleType) {
|
|
727
|
+
let moduleTypes = Array.isArray(moduleType) ? moduleType : moduleType.include ?? [];
|
|
728
|
+
andExprList.push(filter.or(...moduleTypes.map((m) => filter.moduleType(m))));
|
|
729
|
+
}
|
|
730
|
+
if (idIncludes.length) andExprList.push(filter.or(...idIncludes.map((item) => item.expr)));
|
|
731
|
+
if (codeIncludes.length) andExprList.push(filter.or(...codeIncludes.map((item) => item.expr)));
|
|
732
|
+
if (andExprList.length) ret.push(filter.include(filter.and(...andExprList)));
|
|
733
|
+
return ret;
|
|
734
|
+
}
|
|
735
|
+
function bindingifyGeneralHookFilter(stringKind, pattern) {
|
|
736
|
+
let filterExprs = generalHookFilterMatcherToFilterExprs(pattern, stringKind);
|
|
737
|
+
let ret = [];
|
|
738
|
+
if (filterExprs) ret = filterExprs.map(bindingifyFilterExpr);
|
|
739
|
+
return ret.length > 0 ? { value: ret } : void 0;
|
|
740
|
+
}
|
|
741
|
+
function bindingifyFilterExpr(expr) {
|
|
742
|
+
let list = [];
|
|
743
|
+
bindingifyFilterExprImpl(expr, list);
|
|
744
|
+
return list;
|
|
745
|
+
}
|
|
746
|
+
function containsImporterId(expr) {
|
|
747
|
+
switch (expr.kind) {
|
|
748
|
+
case "and":
|
|
749
|
+
case "or": return expr.args.some(containsImporterId);
|
|
750
|
+
case "not":
|
|
751
|
+
case "include":
|
|
752
|
+
case "exclude": return containsImporterId(expr.expr);
|
|
753
|
+
case "importerId": return true;
|
|
754
|
+
default: return false;
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
function assertNoImporterId(filterExprs, hookName) {
|
|
758
|
+
if (filterExprs?.some(containsImporterId)) throw new Error(`The \`importerId\` filter can only be used with the \`resolveId\` hook, but it was used with the \`${hookName}\` hook.`);
|
|
759
|
+
}
|
|
760
|
+
function bindingifyFilterExprImpl(expr, list) {
|
|
761
|
+
switch (expr.kind) {
|
|
762
|
+
case "and": {
|
|
763
|
+
let args = expr.args;
|
|
764
|
+
for (let i = args.length - 1; i >= 0; i--) bindingifyFilterExprImpl(args[i], list);
|
|
765
|
+
list.push({
|
|
766
|
+
kind: "And",
|
|
767
|
+
payload: args.length
|
|
768
|
+
});
|
|
769
|
+
break;
|
|
770
|
+
}
|
|
771
|
+
case "or": {
|
|
772
|
+
let args = expr.args;
|
|
773
|
+
for (let i = args.length - 1; i >= 0; i--) bindingifyFilterExprImpl(args[i], list);
|
|
774
|
+
list.push({
|
|
775
|
+
kind: "Or",
|
|
776
|
+
payload: args.length
|
|
777
|
+
});
|
|
778
|
+
break;
|
|
779
|
+
}
|
|
780
|
+
case "not":
|
|
781
|
+
bindingifyFilterExprImpl(expr.expr, list);
|
|
782
|
+
list.push({ kind: "Not" });
|
|
783
|
+
break;
|
|
784
|
+
case "id":
|
|
785
|
+
list.push({
|
|
786
|
+
kind: "Id",
|
|
787
|
+
payload: expr.pattern
|
|
788
|
+
});
|
|
789
|
+
if (expr.params.cleanUrl) list.push({ kind: "CleanUrl" });
|
|
790
|
+
break;
|
|
791
|
+
case "importerId":
|
|
792
|
+
list.push({
|
|
793
|
+
kind: "ImporterId",
|
|
794
|
+
payload: expr.pattern
|
|
795
|
+
});
|
|
796
|
+
if (expr.params.cleanUrl) list.push({ kind: "CleanUrl" });
|
|
797
|
+
break;
|
|
798
|
+
case "moduleType":
|
|
799
|
+
list.push({
|
|
800
|
+
kind: "ModuleType",
|
|
801
|
+
payload: expr.pattern
|
|
802
|
+
});
|
|
803
|
+
break;
|
|
804
|
+
case "code":
|
|
805
|
+
list.push({
|
|
806
|
+
kind: "Code",
|
|
807
|
+
payload: expr.pattern
|
|
808
|
+
});
|
|
809
|
+
break;
|
|
810
|
+
case "include":
|
|
811
|
+
bindingifyFilterExprImpl(expr.expr, list);
|
|
812
|
+
list.push({ kind: "Include" });
|
|
813
|
+
break;
|
|
814
|
+
case "exclude":
|
|
815
|
+
bindingifyFilterExprImpl(expr.expr, list);
|
|
816
|
+
list.push({ kind: "Exclude" });
|
|
817
|
+
break;
|
|
818
|
+
case "query":
|
|
819
|
+
list.push({
|
|
820
|
+
kind: "QueryKey",
|
|
821
|
+
payload: expr.key
|
|
822
|
+
});
|
|
823
|
+
list.push({
|
|
824
|
+
kind: "QueryValue",
|
|
825
|
+
payload: expr.pattern
|
|
826
|
+
});
|
|
827
|
+
break;
|
|
828
|
+
default: throw new Error(`Unknown filter expression: ${expr}`);
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
function bindingifyResolveIdFilter(filterOption) {
|
|
832
|
+
if (!filterOption) return;
|
|
833
|
+
if (Array.isArray(filterOption)) return { value: filterOption.map(bindingifyFilterExpr) };
|
|
834
|
+
return filterOption.id ? bindingifyGeneralHookFilter("id", filterOption.id) : void 0;
|
|
835
|
+
}
|
|
836
|
+
function bindingifyLoadFilter(filterOption) {
|
|
837
|
+
if (!filterOption) return;
|
|
838
|
+
if (Array.isArray(filterOption)) {
|
|
839
|
+
assertNoImporterId(filterOption, "load");
|
|
840
|
+
return { value: filterOption.map(bindingifyFilterExpr) };
|
|
841
|
+
}
|
|
842
|
+
return filterOption.id ? bindingifyGeneralHookFilter("id", filterOption.id) : void 0;
|
|
843
|
+
}
|
|
844
|
+
function bindingifyTransformFilter(filterOption) {
|
|
845
|
+
if (!filterOption) return;
|
|
846
|
+
let filterExprs = transformFilterMatcherToFilterExprs(filterOption);
|
|
847
|
+
assertNoImporterId(filterExprs, "transform");
|
|
848
|
+
let ret = [];
|
|
849
|
+
if (filterExprs) ret = filterExprs.map(bindingifyFilterExpr);
|
|
850
|
+
return { value: ret.length > 0 ? ret : void 0 };
|
|
851
|
+
}
|
|
852
|
+
function bindingifyRenderChunkFilter(filterOption) {
|
|
853
|
+
if (!filterOption) return;
|
|
854
|
+
if (Array.isArray(filterOption)) {
|
|
855
|
+
assertNoImporterId(filterOption, "renderChunk");
|
|
856
|
+
return { value: filterOption.map(bindingifyFilterExpr) };
|
|
857
|
+
}
|
|
858
|
+
return filterOption.code ? bindingifyGeneralHookFilter("code", filterOption.code) : void 0;
|
|
859
|
+
}
|
|
860
|
+
//#endregion
|
|
861
|
+
//#region src/plugin/bindingify-plugin-hook-meta.ts
|
|
862
|
+
function bindingifyPluginHookMeta(options) {
|
|
863
|
+
return { order: bindingPluginOrder(options.order) };
|
|
864
|
+
}
|
|
865
|
+
function bindingPluginOrder(order) {
|
|
866
|
+
switch (order) {
|
|
867
|
+
case "post": return import_binding.BindingPluginOrder.Post;
|
|
868
|
+
case "pre": return import_binding.BindingPluginOrder.Pre;
|
|
869
|
+
case null:
|
|
870
|
+
case void 0: return;
|
|
871
|
+
default: throw new Error(`Unknown plugin order: ${order}`);
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
//#endregion
|
|
875
|
+
//#region src/plugin/fs.ts
|
|
876
|
+
const fsModule = {
|
|
877
|
+
appendFile: fsp.appendFile,
|
|
878
|
+
copyFile: fsp.copyFile,
|
|
879
|
+
mkdir: fsp.mkdir,
|
|
880
|
+
mkdtemp: fsp.mkdtemp,
|
|
881
|
+
readdir: fsp.readdir,
|
|
882
|
+
readFile: fsp.readFile,
|
|
883
|
+
realpath: fsp.realpath,
|
|
884
|
+
rename: fsp.rename,
|
|
885
|
+
rmdir: fsp.rmdir,
|
|
886
|
+
stat: fsp.stat,
|
|
887
|
+
lstat: fsp.lstat,
|
|
888
|
+
unlink: fsp.unlink,
|
|
889
|
+
writeFile: fsp.writeFile
|
|
890
|
+
};
|
|
891
|
+
//#endregion
|
|
892
|
+
//#region src/plugin/plugin-context.ts
|
|
893
|
+
var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
894
|
+
fs = fsModule;
|
|
895
|
+
getModuleInfo;
|
|
896
|
+
constructor(outputOptions, context, plugin, data, onLog, logLevel, watchMode, currentLoadingModule) {
|
|
897
|
+
super(onLog, logLevel, plugin.name, watchMode);
|
|
898
|
+
this.outputOptions = outputOptions;
|
|
899
|
+
this.context = context;
|
|
900
|
+
this.data = data;
|
|
901
|
+
this.onLog = onLog;
|
|
902
|
+
this.currentLoadingModule = currentLoadingModule;
|
|
903
|
+
this.getModuleInfo = (id) => this.data.getModuleInfo(id, context);
|
|
904
|
+
}
|
|
905
|
+
async load(options) {
|
|
906
|
+
const id = options.id;
|
|
907
|
+
if (id === this.currentLoadingModule) this.onLog(LOG_LEVEL_WARN, logCycleLoading(this.pluginName, this.currentLoadingModule));
|
|
908
|
+
const moduleInfo = this.data.getModuleInfo(id, this.context);
|
|
909
|
+
if (moduleInfo && moduleInfo.code !== null) return moduleInfo;
|
|
910
|
+
const rawOptions = {
|
|
911
|
+
meta: options.meta || {},
|
|
912
|
+
moduleSideEffects: options.moduleSideEffects || null,
|
|
913
|
+
invalidate: false
|
|
914
|
+
};
|
|
915
|
+
this.data.updateModuleOption(id, rawOptions);
|
|
916
|
+
let loadPromise = this.data.loadModulePromiseMap.get(id);
|
|
917
|
+
if (!loadPromise) {
|
|
918
|
+
loadPromise = this.context.load(id, options.moduleSideEffects ?? void 0, options.packageJsonPath ?? void 0).catch(() => {
|
|
919
|
+
this.data.loadModulePromiseMap.delete(id);
|
|
920
|
+
});
|
|
921
|
+
this.data.loadModulePromiseMap.set(id, loadPromise);
|
|
922
|
+
}
|
|
923
|
+
await loadPromise;
|
|
924
|
+
return this.data.getModuleInfo(id, this.context);
|
|
925
|
+
}
|
|
926
|
+
async resolve(source, importer, options) {
|
|
927
|
+
let receipt = void 0;
|
|
928
|
+
if (options != null) receipt = this.data.saveResolveOptions(options);
|
|
929
|
+
const vitePluginCustom = Object.entries(options?.custom ?? {}).reduce((acc, [key, value]) => {
|
|
930
|
+
if (key.startsWith("vite:")) (acc ??= {})[key] = value;
|
|
931
|
+
return acc;
|
|
932
|
+
}, void 0);
|
|
933
|
+
const res = await this.context.resolve(source, importer, {
|
|
934
|
+
importKind: options?.kind,
|
|
935
|
+
custom: receipt,
|
|
936
|
+
isEntry: options?.isEntry,
|
|
937
|
+
skipSelf: options?.skipSelf,
|
|
938
|
+
vitePluginCustom
|
|
939
|
+
});
|
|
940
|
+
if (receipt != null) this.data.removeSavedResolveOptions(receipt);
|
|
941
|
+
if (res == null) return null;
|
|
942
|
+
const info = this.data.getModuleOption(res.id) || {};
|
|
943
|
+
return {
|
|
944
|
+
...res,
|
|
945
|
+
external: res.external === "relative" ? unreachable(`The PluginContext resolve result external couldn't be 'relative'`) : res.external,
|
|
946
|
+
...info,
|
|
947
|
+
moduleSideEffects: info.moduleSideEffects ?? res.moduleSideEffects ?? null,
|
|
948
|
+
packageJsonPath: res.packageJsonPath
|
|
949
|
+
};
|
|
950
|
+
}
|
|
951
|
+
emitFile = (file) => {
|
|
952
|
+
if (file.type === "prebuilt-chunk") return this.context.emitPrebuiltChunk({
|
|
953
|
+
fileName: file.fileName,
|
|
954
|
+
name: file.name,
|
|
955
|
+
code: file.code,
|
|
956
|
+
exports: file.exports,
|
|
957
|
+
map: bindingifySourcemap(file.map),
|
|
958
|
+
sourcemapFileName: file.sourcemapFileName,
|
|
959
|
+
facadeModuleId: file.facadeModuleId,
|
|
960
|
+
isEntry: file.isEntry,
|
|
961
|
+
isDynamicEntry: file.isDynamicEntry
|
|
962
|
+
});
|
|
963
|
+
if (file.type === "chunk") return this.context.emitChunk({
|
|
964
|
+
preserveEntrySignatures: bindingifyPreserveEntrySignatures(file.preserveSignature),
|
|
965
|
+
...file
|
|
966
|
+
});
|
|
967
|
+
const fnSanitizedFileName = file.fileName || typeof this.outputOptions.sanitizeFileName !== "function" ? void 0 : this.outputOptions.sanitizeFileName(file.name || "asset");
|
|
968
|
+
const filename = file.fileName ? void 0 : this.getAssetFileNames(file);
|
|
969
|
+
return this.context.emitFile({
|
|
970
|
+
...file,
|
|
971
|
+
originalFileName: file.originalFileName || void 0,
|
|
972
|
+
source: bindingAssetSource(file.source)
|
|
973
|
+
}, filename, fnSanitizedFileName);
|
|
974
|
+
};
|
|
975
|
+
getAssetFileNames(file) {
|
|
976
|
+
if (typeof this.outputOptions.assetFileNames === "function") return this.outputOptions.assetFileNames({
|
|
977
|
+
type: "asset",
|
|
978
|
+
name: file.name,
|
|
979
|
+
names: file.name ? [file.name] : [],
|
|
980
|
+
originalFileName: file.originalFileName,
|
|
981
|
+
originalFileNames: file.originalFileName ? [file.originalFileName] : [],
|
|
982
|
+
source: file.source
|
|
983
|
+
});
|
|
984
|
+
}
|
|
985
|
+
getFileName(referenceId) {
|
|
986
|
+
return this.context.getFileName(referenceId);
|
|
987
|
+
}
|
|
988
|
+
getModuleIds() {
|
|
989
|
+
return this.data.getModuleIds(this.context);
|
|
990
|
+
}
|
|
991
|
+
addWatchFile(id) {
|
|
992
|
+
this.context.addWatchFile(id);
|
|
993
|
+
}
|
|
994
|
+
parse(input, options) {
|
|
995
|
+
return parseAst(input, options);
|
|
996
|
+
}
|
|
997
|
+
};
|
|
998
|
+
//#endregion
|
|
999
|
+
//#region src/plugin/load-plugin-context.ts
|
|
1000
|
+
var LoadPluginContextImpl = class extends PluginContextImpl {
|
|
1001
|
+
constructor(outputOptions, context, plugin, data, inner, moduleId, onLog, logLevelOption, watchMode) {
|
|
1002
|
+
super(outputOptions, context, plugin, data, onLog, logLevelOption, watchMode, moduleId);
|
|
1003
|
+
this.inner = inner;
|
|
1004
|
+
}
|
|
1005
|
+
addWatchFile(id) {
|
|
1006
|
+
this.inner.addWatchFile(id);
|
|
1007
|
+
}
|
|
1008
|
+
};
|
|
1009
|
+
//#endregion
|
|
1010
|
+
//#region src/plugin/transform-plugin-context.ts
|
|
1011
|
+
var TransformPluginContextImpl = class extends PluginContextImpl {
|
|
1012
|
+
constructor(outputOptions, context, plugin, data, inner, moduleId, moduleSource, onLog, LogLevelOption, watchMode) {
|
|
1013
|
+
super(outputOptions, context, plugin, data, onLog, LogLevelOption, watchMode, moduleId);
|
|
1014
|
+
this.inner = inner;
|
|
1015
|
+
this.moduleId = moduleId;
|
|
1016
|
+
this.moduleSource = moduleSource;
|
|
1017
|
+
const getLogHandler = (handler) => (log, pos) => {
|
|
1018
|
+
log = normalizeLog(log);
|
|
1019
|
+
if (pos) augmentCodeLocation(log, pos, moduleSource, moduleId);
|
|
1020
|
+
log.id = moduleId;
|
|
1021
|
+
log.hook = "transform";
|
|
1022
|
+
handler(log);
|
|
1023
|
+
};
|
|
1024
|
+
this.debug = getLogHandler(this.debug);
|
|
1025
|
+
this.warn = getLogHandler(this.warn);
|
|
1026
|
+
this.info = getLogHandler(this.info);
|
|
1027
|
+
}
|
|
1028
|
+
error(e, pos) {
|
|
1029
|
+
if (typeof e === "string") e = { message: e };
|
|
1030
|
+
if (pos) augmentCodeLocation(e, pos, this.moduleSource, this.moduleId);
|
|
1031
|
+
e.id = this.moduleId;
|
|
1032
|
+
e.hook = "transform";
|
|
1033
|
+
return error(logPluginError(normalizeLog(e), this.pluginName));
|
|
1034
|
+
}
|
|
1035
|
+
getCombinedSourcemap() {
|
|
1036
|
+
return JSON.parse(this.inner.getCombinedSourcemap());
|
|
1037
|
+
}
|
|
1038
|
+
addWatchFile(id) {
|
|
1039
|
+
this.inner.addWatchFile(id);
|
|
1040
|
+
}
|
|
1041
|
+
sendMagicString(s) {
|
|
1042
|
+
this.inner.sendMagicString(s);
|
|
1043
|
+
}
|
|
1044
|
+
};
|
|
1045
|
+
//#endregion
|
|
1046
|
+
//#region src/plugin/bindingify-build-hooks.ts
|
|
1047
|
+
function createPluginContext(args, ctx) {
|
|
1048
|
+
return new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode);
|
|
1049
|
+
}
|
|
1050
|
+
function bindingifyBuildStart(args) {
|
|
1051
|
+
const hook = args.plugin.buildStart;
|
|
1052
|
+
if (!hook) return {};
|
|
1053
|
+
const { handler, meta } = normalizeHook(hook);
|
|
1054
|
+
return {
|
|
1055
|
+
plugin: async (ctx, opts) => {
|
|
1056
|
+
await handler.call(createPluginContext(args, ctx), args.pluginContextData.getInputOptions(opts));
|
|
1057
|
+
},
|
|
1058
|
+
meta: bindingifyPluginHookMeta(meta)
|
|
1059
|
+
};
|
|
1060
|
+
}
|
|
1061
|
+
function bindingifyBuildEnd(args) {
|
|
1062
|
+
const hook = args.plugin.buildEnd;
|
|
1063
|
+
if (!hook) return {};
|
|
1064
|
+
const { handler, meta } = normalizeHook(hook);
|
|
1065
|
+
return {
|
|
1066
|
+
plugin: async (ctx, err) => {
|
|
1067
|
+
await handler.call(createPluginContext(args, ctx), err ? aggregateBindingErrorsIntoJsError(err) : void 0);
|
|
1068
|
+
},
|
|
1069
|
+
meta: bindingifyPluginHookMeta(meta)
|
|
1070
|
+
};
|
|
1071
|
+
}
|
|
1072
|
+
function bindingifyResolveId(args) {
|
|
1073
|
+
const hook = args.plugin.resolveId;
|
|
1074
|
+
if (!hook) return {};
|
|
1075
|
+
const { handler, meta, options } = normalizeHook(hook);
|
|
1076
|
+
return {
|
|
1077
|
+
plugin: async (ctx, specifier, importer, extraOptions) => {
|
|
1078
|
+
const contextResolveOptions = extraOptions.custom != null ? args.pluginContextData.getSavedResolveOptions(extraOptions.custom) : void 0;
|
|
1079
|
+
const ret = await handler.call(createPluginContext(args, ctx), specifier, importer ?? void 0, {
|
|
1080
|
+
...extraOptions,
|
|
1081
|
+
custom: contextResolveOptions?.custom
|
|
1082
|
+
});
|
|
1083
|
+
if (ret == null) return;
|
|
1084
|
+
if (ret === false) return {
|
|
1085
|
+
id: specifier,
|
|
1086
|
+
external: true,
|
|
1087
|
+
normalizeExternalId: true
|
|
1088
|
+
};
|
|
1089
|
+
if (typeof ret === "string") return {
|
|
1090
|
+
id: ret,
|
|
1091
|
+
normalizeExternalId: false
|
|
1092
|
+
};
|
|
1093
|
+
let exist = args.pluginContextData.updateModuleOption(ret.id, {
|
|
1094
|
+
meta: ret.meta || {},
|
|
1095
|
+
moduleSideEffects: ret.moduleSideEffects ?? null,
|
|
1096
|
+
invalidate: false
|
|
1097
|
+
});
|
|
1098
|
+
return {
|
|
1099
|
+
id: ret.id,
|
|
1100
|
+
external: ret.external,
|
|
1101
|
+
normalizeExternalId: false,
|
|
1102
|
+
moduleSideEffects: exist.moduleSideEffects ?? void 0,
|
|
1103
|
+
packageJsonPath: ret.packageJsonPath
|
|
1104
|
+
};
|
|
1105
|
+
},
|
|
1106
|
+
meta: bindingifyPluginHookMeta(meta),
|
|
1107
|
+
filter: bindingifyResolveIdFilter(options.filter)
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
function bindingifyResolveDynamicImport(args) {
|
|
1111
|
+
const hook = args.plugin.resolveDynamicImport;
|
|
1112
|
+
if (!hook) return {};
|
|
1113
|
+
const { handler, meta } = normalizeHook(hook);
|
|
1114
|
+
return {
|
|
1115
|
+
plugin: async (ctx, specifier, importer) => {
|
|
1116
|
+
const ret = await handler.call(createPluginContext(args, ctx), specifier, importer ?? void 0);
|
|
1117
|
+
if (ret == null) return;
|
|
1118
|
+
if (ret === false) return {
|
|
1119
|
+
id: specifier,
|
|
1120
|
+
external: true
|
|
1121
|
+
};
|
|
1122
|
+
if (typeof ret === "string") return { id: ret };
|
|
1123
|
+
const result = {
|
|
1124
|
+
id: ret.id,
|
|
1125
|
+
external: ret.external,
|
|
1126
|
+
packageJsonPath: ret.packageJsonPath
|
|
1127
|
+
};
|
|
1128
|
+
if (ret.moduleSideEffects !== null) result.moduleSideEffects = ret.moduleSideEffects;
|
|
1129
|
+
args.pluginContextData.updateModuleOption(ret.id, {
|
|
1130
|
+
meta: ret.meta || {},
|
|
1131
|
+
moduleSideEffects: ret.moduleSideEffects || null,
|
|
1132
|
+
invalidate: false
|
|
1133
|
+
});
|
|
1134
|
+
return result;
|
|
1135
|
+
},
|
|
1136
|
+
meta: bindingifyPluginHookMeta(meta)
|
|
1137
|
+
};
|
|
1138
|
+
}
|
|
1139
|
+
function bindingifyTransform(args) {
|
|
1140
|
+
const hook = args.plugin.transform;
|
|
1141
|
+
if (!hook) return {};
|
|
1142
|
+
const { handler, meta, options } = normalizeHook(hook);
|
|
1143
|
+
return {
|
|
1144
|
+
plugin: async (ctx, code, id, meta) => {
|
|
1145
|
+
let magicStringInstance, astInstance;
|
|
1146
|
+
Object.defineProperties(meta, {
|
|
1147
|
+
magicString: { get() {
|
|
1148
|
+
if (magicStringInstance) return magicStringInstance;
|
|
1149
|
+
magicStringInstance = new RolldownMagicString(code);
|
|
1150
|
+
return magicStringInstance;
|
|
1151
|
+
} },
|
|
1152
|
+
ast: { get() {
|
|
1153
|
+
if (astInstance) return astInstance;
|
|
1154
|
+
let lang = "js";
|
|
1155
|
+
switch (meta.moduleType) {
|
|
1156
|
+
case "js":
|
|
1157
|
+
case "jsx":
|
|
1158
|
+
case "ts":
|
|
1159
|
+
case "tsx":
|
|
1160
|
+
lang = meta.moduleType;
|
|
1161
|
+
break;
|
|
1162
|
+
default: break;
|
|
1163
|
+
}
|
|
1164
|
+
astInstance = parseAst(code, {
|
|
1165
|
+
astType: meta.moduleType.includes("ts") ? "ts" : "js",
|
|
1166
|
+
lang
|
|
1167
|
+
});
|
|
1168
|
+
return astInstance;
|
|
1169
|
+
} }
|
|
1170
|
+
});
|
|
1171
|
+
const transformCtx = new TransformPluginContextImpl(args.outputOptions, ctx.inner(), args.plugin, args.pluginContextData, ctx, id, code, args.onLog, args.logLevel, args.watchMode);
|
|
1172
|
+
const ret = await handler.call(transformCtx, code, id, meta);
|
|
1173
|
+
if (ret == null) return;
|
|
1174
|
+
if (typeof ret === "string") return { code: ret };
|
|
1175
|
+
let moduleOption = args.pluginContextData.updateModuleOption(id, {
|
|
1176
|
+
meta: ret.meta ?? {},
|
|
1177
|
+
moduleSideEffects: ret.moduleSideEffects ?? null,
|
|
1178
|
+
invalidate: false
|
|
1179
|
+
});
|
|
1180
|
+
let normalizedCode = void 0;
|
|
1181
|
+
let map = ret.map;
|
|
1182
|
+
if (typeof ret.code === "string") normalizedCode = ret.code;
|
|
1183
|
+
else if (ret.code instanceof RolldownMagicString) {
|
|
1184
|
+
let magicString = ret.code;
|
|
1185
|
+
normalizedCode = magicString.toString();
|
|
1186
|
+
let fallbackSourcemap = ctx.sendMagicString(magicString);
|
|
1187
|
+
if (fallbackSourcemap != void 0) map = fallbackSourcemap;
|
|
1188
|
+
}
|
|
1189
|
+
return {
|
|
1190
|
+
code: normalizedCode,
|
|
1191
|
+
map: bindingifySourcemap(normalizeTransformHookSourcemap(id, code, map)),
|
|
1192
|
+
moduleSideEffects: moduleOption.moduleSideEffects ?? void 0,
|
|
1193
|
+
moduleType: ret.moduleType
|
|
1194
|
+
};
|
|
1195
|
+
},
|
|
1196
|
+
meta: bindingifyPluginHookMeta(meta),
|
|
1197
|
+
filter: bindingifyTransformFilter(options.filter)
|
|
1198
|
+
};
|
|
1199
|
+
}
|
|
1200
|
+
function bindingifyLoad(args) {
|
|
1201
|
+
const hook = args.plugin.load;
|
|
1202
|
+
if (!hook) return {};
|
|
1203
|
+
const { handler, meta, options } = normalizeHook(hook);
|
|
1204
|
+
return {
|
|
1205
|
+
plugin: async (ctx, id) => {
|
|
1206
|
+
const ret = await handler.call(new LoadPluginContextImpl(args.outputOptions, ctx.inner(), args.plugin, args.pluginContextData, ctx, id, args.onLog, args.logLevel, args.watchMode), id);
|
|
1207
|
+
if (ret == null) return;
|
|
1208
|
+
if (typeof ret === "string") return { code: ret };
|
|
1209
|
+
let moduleOption = args.pluginContextData.updateModuleOption(id, {
|
|
1210
|
+
meta: ret.meta || {},
|
|
1211
|
+
moduleSideEffects: ret.moduleSideEffects ?? null,
|
|
1212
|
+
invalidate: false
|
|
1213
|
+
});
|
|
1214
|
+
let map = preProcessSourceMap(ret, id);
|
|
1215
|
+
return {
|
|
1216
|
+
code: ret.code,
|
|
1217
|
+
map: bindingifySourcemap(map),
|
|
1218
|
+
moduleType: ret.moduleType,
|
|
1219
|
+
moduleSideEffects: moduleOption.moduleSideEffects ?? void 0
|
|
1220
|
+
};
|
|
1221
|
+
},
|
|
1222
|
+
meta: bindingifyPluginHookMeta(meta),
|
|
1223
|
+
filter: bindingifyLoadFilter(options.filter)
|
|
1224
|
+
};
|
|
1225
|
+
}
|
|
1226
|
+
function preProcessSourceMap(ret, id) {
|
|
1227
|
+
if (!ret.map) return;
|
|
1228
|
+
let map = typeof ret.map === "object" ? ret.map : JSON.parse(ret.map);
|
|
1229
|
+
if (!isEmptySourcemapFiled(map.sources)) {
|
|
1230
|
+
const directory = path.dirname(id) || ".";
|
|
1231
|
+
const sourceRoot = map.sourceRoot || ".";
|
|
1232
|
+
map.sources = map.sources.map((source) => path.resolve(directory, sourceRoot, source));
|
|
1233
|
+
}
|
|
1234
|
+
return map;
|
|
1235
|
+
}
|
|
1236
|
+
function bindingifyModuleParsed(args) {
|
|
1237
|
+
const hook = args.plugin.moduleParsed;
|
|
1238
|
+
if (!hook) return {};
|
|
1239
|
+
const { handler, meta } = normalizeHook(hook);
|
|
1240
|
+
return {
|
|
1241
|
+
plugin: async (ctx, moduleInfo) => {
|
|
1242
|
+
await handler.call(createPluginContext(args, ctx), transformModuleInfo(moduleInfo, args.pluginContextData.getModuleOption(moduleInfo.id)));
|
|
1243
|
+
},
|
|
1244
|
+
meta: bindingifyPluginHookMeta(meta)
|
|
1245
|
+
};
|
|
1246
|
+
}
|
|
1247
|
+
//#endregion
|
|
1248
|
+
//#region src/plugin/bindingify-output-hooks.ts
|
|
1249
|
+
function bindingifyRenderStart(args) {
|
|
1250
|
+
const hook = args.plugin.renderStart;
|
|
1251
|
+
if (!hook) return {};
|
|
1252
|
+
const { handler, meta } = normalizeHook(hook);
|
|
1253
|
+
return {
|
|
1254
|
+
plugin: async (ctx, opts) => {
|
|
1255
|
+
handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), args.pluginContextData.getOutputOptions(opts), args.pluginContextData.getInputOptions(opts));
|
|
1256
|
+
},
|
|
1257
|
+
meta: bindingifyPluginHookMeta(meta)
|
|
1258
|
+
};
|
|
1259
|
+
}
|
|
1260
|
+
function bindingifyRenderChunk(args) {
|
|
1261
|
+
const hook = args.plugin.renderChunk;
|
|
1262
|
+
if (!hook) return {};
|
|
1263
|
+
const { handler, meta, options } = normalizeHook(hook);
|
|
1264
|
+
return {
|
|
1265
|
+
plugin: async (ctx, code, chunk, opts, meta) => {
|
|
1266
|
+
if (args.pluginContextData.getRenderChunkMeta() == null) args.pluginContextData.setRenderChunkMeta({ chunks: Object.fromEntries(Object.entries(meta.chunks).map(([key, value]) => [key, transformRenderedChunk(value)])) });
|
|
1267
|
+
const renderChunkMeta = args.pluginContextData.getRenderChunkMeta();
|
|
1268
|
+
let magicStringInstance;
|
|
1269
|
+
if (args.options.experimental?.nativeMagicString) Object.defineProperty(renderChunkMeta, "magicString", {
|
|
1270
|
+
get() {
|
|
1271
|
+
if (magicStringInstance) return magicStringInstance;
|
|
1272
|
+
magicStringInstance = new RolldownMagicString(code);
|
|
1273
|
+
return magicStringInstance;
|
|
1274
|
+
},
|
|
1275
|
+
configurable: true
|
|
1276
|
+
});
|
|
1277
|
+
const ret = await handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), code, transformRenderedChunk(chunk), args.pluginContextData.getOutputOptions(opts), renderChunkMeta);
|
|
1278
|
+
if (ret == null) return;
|
|
1279
|
+
if (ret instanceof RolldownMagicString) {
|
|
1280
|
+
const normalizedCode = ret.toString();
|
|
1281
|
+
const generatedMap = ret.generateMap();
|
|
1282
|
+
return {
|
|
1283
|
+
code: normalizedCode,
|
|
1284
|
+
map: bindingifySourcemap({
|
|
1285
|
+
file: generatedMap.file,
|
|
1286
|
+
mappings: generatedMap.mappings,
|
|
1287
|
+
names: generatedMap.names,
|
|
1288
|
+
sources: generatedMap.sources,
|
|
1289
|
+
sourcesContent: generatedMap.sourcesContent.map((s) => s ?? null)
|
|
1290
|
+
})
|
|
1291
|
+
};
|
|
1292
|
+
}
|
|
1293
|
+
if (typeof ret === "string") return { code: ret };
|
|
1294
|
+
if (ret.code instanceof RolldownMagicString) {
|
|
1295
|
+
const magicString = ret.code;
|
|
1296
|
+
const normalizedCode = magicString.toString();
|
|
1297
|
+
if (ret.map === null) return { code: normalizedCode };
|
|
1298
|
+
if (ret.map === void 0) {
|
|
1299
|
+
const generatedMap = magicString.generateMap();
|
|
1300
|
+
return {
|
|
1301
|
+
code: normalizedCode,
|
|
1302
|
+
map: bindingifySourcemap({
|
|
1303
|
+
file: generatedMap.file,
|
|
1304
|
+
mappings: generatedMap.mappings,
|
|
1305
|
+
names: generatedMap.names,
|
|
1306
|
+
sources: generatedMap.sources,
|
|
1307
|
+
sourcesContent: generatedMap.sourcesContent.map((s) => s ?? null)
|
|
1308
|
+
})
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1311
|
+
return {
|
|
1312
|
+
code: normalizedCode,
|
|
1313
|
+
map: bindingifySourcemap(ret.map)
|
|
1314
|
+
};
|
|
1315
|
+
}
|
|
1316
|
+
if (!ret.map) return { code: ret.code };
|
|
1317
|
+
return {
|
|
1318
|
+
code: ret.code,
|
|
1319
|
+
map: bindingifySourcemap(ret.map)
|
|
1320
|
+
};
|
|
1321
|
+
},
|
|
1322
|
+
meta: bindingifyPluginHookMeta(meta),
|
|
1323
|
+
filter: bindingifyRenderChunkFilter(options.filter)
|
|
1324
|
+
};
|
|
1325
|
+
}
|
|
1326
|
+
function bindingifyAugmentChunkHash(args) {
|
|
1327
|
+
const hook = args.plugin.augmentChunkHash;
|
|
1328
|
+
if (!hook) return {};
|
|
1329
|
+
const { handler, meta } = normalizeHook(hook);
|
|
1330
|
+
return {
|
|
1331
|
+
plugin: async (ctx, chunk) => {
|
|
1332
|
+
return handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), transformRenderedChunk(chunk));
|
|
1333
|
+
},
|
|
1334
|
+
meta: bindingifyPluginHookMeta(meta)
|
|
1335
|
+
};
|
|
1336
|
+
}
|
|
1337
|
+
function bindingifyRenderError(args) {
|
|
1338
|
+
const hook = args.plugin.renderError;
|
|
1339
|
+
if (!hook) return {};
|
|
1340
|
+
const { handler, meta } = normalizeHook(hook);
|
|
1341
|
+
return {
|
|
1342
|
+
plugin: async (ctx, err) => {
|
|
1343
|
+
handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), aggregateBindingErrorsIntoJsError(err));
|
|
1344
|
+
},
|
|
1345
|
+
meta: bindingifyPluginHookMeta(meta)
|
|
1346
|
+
};
|
|
1347
|
+
}
|
|
1348
|
+
function bindingifyGenerateBundle(args) {
|
|
1349
|
+
const hook = args.plugin.generateBundle;
|
|
1350
|
+
if (!hook) return {};
|
|
1351
|
+
const { handler, meta } = normalizeHook(hook);
|
|
1352
|
+
return {
|
|
1353
|
+
plugin: async (ctx, bundle, isWrite, opts) => {
|
|
1354
|
+
const changed = {
|
|
1355
|
+
updated: /* @__PURE__ */ new Set(),
|
|
1356
|
+
deleted: /* @__PURE__ */ new Set()
|
|
1357
|
+
};
|
|
1358
|
+
const context = new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode);
|
|
1359
|
+
const output = transformToOutputBundle(context, unwrapBindingResult(bundle), changed);
|
|
1360
|
+
await handler.call(context, args.pluginContextData.getOutputOptions(opts), output, isWrite);
|
|
1361
|
+
return collectChangedBundle(changed, output);
|
|
1362
|
+
},
|
|
1363
|
+
meta: bindingifyPluginHookMeta(meta)
|
|
1364
|
+
};
|
|
1365
|
+
}
|
|
1366
|
+
function bindingifyWriteBundle(args) {
|
|
1367
|
+
const hook = args.plugin.writeBundle;
|
|
1368
|
+
if (!hook) return {};
|
|
1369
|
+
const { handler, meta } = normalizeHook(hook);
|
|
1370
|
+
return {
|
|
1371
|
+
plugin: async (ctx, bundle, opts) => {
|
|
1372
|
+
const changed = {
|
|
1373
|
+
updated: /* @__PURE__ */ new Set(),
|
|
1374
|
+
deleted: /* @__PURE__ */ new Set()
|
|
1375
|
+
};
|
|
1376
|
+
const context = new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode);
|
|
1377
|
+
const output = transformToOutputBundle(context, unwrapBindingResult(bundle), changed);
|
|
1378
|
+
await handler.call(context, args.pluginContextData.getOutputOptions(opts), output);
|
|
1379
|
+
return collectChangedBundle(changed, output);
|
|
1380
|
+
},
|
|
1381
|
+
meta: bindingifyPluginHookMeta(meta)
|
|
1382
|
+
};
|
|
1383
|
+
}
|
|
1384
|
+
function bindingifyCloseBundle(args) {
|
|
1385
|
+
const hook = args.plugin.closeBundle;
|
|
1386
|
+
if (!hook) return {};
|
|
1387
|
+
const { handler, meta } = normalizeHook(hook);
|
|
1388
|
+
return {
|
|
1389
|
+
plugin: async (ctx, err) => {
|
|
1390
|
+
await handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), err ? aggregateBindingErrorsIntoJsError(err) : void 0);
|
|
1391
|
+
},
|
|
1392
|
+
meta: bindingifyPluginHookMeta(meta)
|
|
1393
|
+
};
|
|
1394
|
+
}
|
|
1395
|
+
function bindingifyBanner(args) {
|
|
1396
|
+
const hook = args.plugin.banner;
|
|
1397
|
+
if (!hook) return {};
|
|
1398
|
+
const { handler, meta } = normalizeHook(hook);
|
|
1399
|
+
return {
|
|
1400
|
+
plugin: async (ctx, chunk) => {
|
|
1401
|
+
if (typeof handler === "string") return handler;
|
|
1402
|
+
return handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), transformRenderedChunk(chunk));
|
|
1403
|
+
},
|
|
1404
|
+
meta: bindingifyPluginHookMeta(meta)
|
|
1405
|
+
};
|
|
1406
|
+
}
|
|
1407
|
+
function bindingifyFooter(args) {
|
|
1408
|
+
const hook = args.plugin.footer;
|
|
1409
|
+
if (!hook) return {};
|
|
1410
|
+
const { handler, meta } = normalizeHook(hook);
|
|
1411
|
+
return {
|
|
1412
|
+
plugin: async (ctx, chunk) => {
|
|
1413
|
+
if (typeof handler === "string") return handler;
|
|
1414
|
+
return handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), transformRenderedChunk(chunk));
|
|
1415
|
+
},
|
|
1416
|
+
meta: bindingifyPluginHookMeta(meta)
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1419
|
+
function bindingifyIntro(args) {
|
|
1420
|
+
const hook = args.plugin.intro;
|
|
1421
|
+
if (!hook) return {};
|
|
1422
|
+
const { handler, meta } = normalizeHook(hook);
|
|
1423
|
+
return {
|
|
1424
|
+
plugin: async (ctx, chunk) => {
|
|
1425
|
+
if (typeof handler === "string") return handler;
|
|
1426
|
+
return handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), transformRenderedChunk(chunk));
|
|
1427
|
+
},
|
|
1428
|
+
meta: bindingifyPluginHookMeta(meta)
|
|
1429
|
+
};
|
|
1430
|
+
}
|
|
1431
|
+
function bindingifyOutro(args) {
|
|
1432
|
+
const hook = args.plugin.outro;
|
|
1433
|
+
if (!hook) return {};
|
|
1434
|
+
const { handler, meta } = normalizeHook(hook);
|
|
1435
|
+
return {
|
|
1436
|
+
plugin: async (ctx, chunk) => {
|
|
1437
|
+
if (typeof handler === "string") return handler;
|
|
1438
|
+
return handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), transformRenderedChunk(chunk));
|
|
1439
|
+
},
|
|
1440
|
+
meta: bindingifyPluginHookMeta(meta)
|
|
1441
|
+
};
|
|
1442
|
+
}
|
|
1443
|
+
//#endregion
|
|
1444
|
+
//#region src/plugin/bindingify-watch-hooks.ts
|
|
1445
|
+
function bindingifyWatchChange(args) {
|
|
1446
|
+
const hook = args.plugin.watchChange;
|
|
1447
|
+
if (!hook) return {};
|
|
1448
|
+
const { handler, meta } = normalizeHook(hook);
|
|
1449
|
+
return {
|
|
1450
|
+
plugin: async (ctx, id, event) => {
|
|
1451
|
+
await handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), id, { event });
|
|
1452
|
+
},
|
|
1453
|
+
meta: bindingifyPluginHookMeta(meta)
|
|
1454
|
+
};
|
|
1455
|
+
}
|
|
1456
|
+
function bindingifyCloseWatcher(args) {
|
|
1457
|
+
const hook = args.plugin.closeWatcher;
|
|
1458
|
+
if (!hook) return {};
|
|
1459
|
+
const { handler, meta } = normalizeHook(hook);
|
|
1460
|
+
return {
|
|
1461
|
+
plugin: async (ctx) => {
|
|
1462
|
+
await handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode));
|
|
1463
|
+
},
|
|
1464
|
+
meta: bindingifyPluginHookMeta(meta)
|
|
1465
|
+
};
|
|
1466
|
+
}
|
|
1467
|
+
//#endregion
|
|
1468
|
+
//#region src/plugin/generated/hook-usage.ts
|
|
1469
|
+
let HookUsageKind = /* @__PURE__ */ function(HookUsageKind) {
|
|
1470
|
+
HookUsageKind[HookUsageKind["buildStart"] = 1] = "buildStart";
|
|
1471
|
+
HookUsageKind[HookUsageKind["resolveId"] = 2] = "resolveId";
|
|
1472
|
+
HookUsageKind[HookUsageKind["resolveDynamicImport"] = 4] = "resolveDynamicImport";
|
|
1473
|
+
HookUsageKind[HookUsageKind["load"] = 8] = "load";
|
|
1474
|
+
HookUsageKind[HookUsageKind["transform"] = 16] = "transform";
|
|
1475
|
+
HookUsageKind[HookUsageKind["moduleParsed"] = 32] = "moduleParsed";
|
|
1476
|
+
HookUsageKind[HookUsageKind["buildEnd"] = 64] = "buildEnd";
|
|
1477
|
+
HookUsageKind[HookUsageKind["renderStart"] = 128] = "renderStart";
|
|
1478
|
+
HookUsageKind[HookUsageKind["renderError"] = 256] = "renderError";
|
|
1479
|
+
HookUsageKind[HookUsageKind["renderChunk"] = 512] = "renderChunk";
|
|
1480
|
+
HookUsageKind[HookUsageKind["augmentChunkHash"] = 1024] = "augmentChunkHash";
|
|
1481
|
+
HookUsageKind[HookUsageKind["generateBundle"] = 2048] = "generateBundle";
|
|
1482
|
+
HookUsageKind[HookUsageKind["writeBundle"] = 4096] = "writeBundle";
|
|
1483
|
+
HookUsageKind[HookUsageKind["closeBundle"] = 8192] = "closeBundle";
|
|
1484
|
+
HookUsageKind[HookUsageKind["watchChange"] = 16384] = "watchChange";
|
|
1485
|
+
HookUsageKind[HookUsageKind["closeWatcher"] = 32768] = "closeWatcher";
|
|
1486
|
+
HookUsageKind[HookUsageKind["transformAst"] = 65536] = "transformAst";
|
|
1487
|
+
HookUsageKind[HookUsageKind["banner"] = 131072] = "banner";
|
|
1488
|
+
HookUsageKind[HookUsageKind["footer"] = 262144] = "footer";
|
|
1489
|
+
HookUsageKind[HookUsageKind["intro"] = 524288] = "intro";
|
|
1490
|
+
HookUsageKind[HookUsageKind["outro"] = 1048576] = "outro";
|
|
1491
|
+
return HookUsageKind;
|
|
1492
|
+
}({});
|
|
1493
|
+
var HookUsage = class {
|
|
1494
|
+
bitflag = BigInt(0);
|
|
1495
|
+
constructor() {}
|
|
1496
|
+
union(kind) {
|
|
1497
|
+
this.bitflag |= BigInt(kind);
|
|
1498
|
+
}
|
|
1499
|
+
inner() {
|
|
1500
|
+
return Number(this.bitflag);
|
|
1501
|
+
}
|
|
1502
|
+
};
|
|
1503
|
+
function extractHookUsage(plugin) {
|
|
1504
|
+
let hookUsage = new HookUsage();
|
|
1505
|
+
if (plugin.buildStart) hookUsage.union(HookUsageKind.buildStart);
|
|
1506
|
+
if (plugin.resolveId) hookUsage.union(HookUsageKind.resolveId);
|
|
1507
|
+
if (plugin.resolveDynamicImport) hookUsage.union(HookUsageKind.resolveDynamicImport);
|
|
1508
|
+
if (plugin.load) hookUsage.union(HookUsageKind.load);
|
|
1509
|
+
if (plugin.transform) hookUsage.union(HookUsageKind.transform);
|
|
1510
|
+
if (plugin.moduleParsed) hookUsage.union(HookUsageKind.moduleParsed);
|
|
1511
|
+
if (plugin.buildEnd) hookUsage.union(HookUsageKind.buildEnd);
|
|
1512
|
+
if (plugin.renderStart) hookUsage.union(HookUsageKind.renderStart);
|
|
1513
|
+
if (plugin.renderError) hookUsage.union(HookUsageKind.renderError);
|
|
1514
|
+
if (plugin.renderChunk) hookUsage.union(HookUsageKind.renderChunk);
|
|
1515
|
+
if (plugin.augmentChunkHash) hookUsage.union(HookUsageKind.augmentChunkHash);
|
|
1516
|
+
if (plugin.generateBundle) hookUsage.union(HookUsageKind.generateBundle);
|
|
1517
|
+
if (plugin.writeBundle) hookUsage.union(HookUsageKind.writeBundle);
|
|
1518
|
+
if (plugin.closeBundle) hookUsage.union(HookUsageKind.closeBundle);
|
|
1519
|
+
if (plugin.watchChange) hookUsage.union(HookUsageKind.watchChange);
|
|
1520
|
+
if (plugin.closeWatcher) hookUsage.union(HookUsageKind.closeWatcher);
|
|
1521
|
+
if (plugin.banner) hookUsage.union(HookUsageKind.banner);
|
|
1522
|
+
if (plugin.footer) hookUsage.union(HookUsageKind.footer);
|
|
1523
|
+
if (plugin.intro) hookUsage.union(HookUsageKind.intro);
|
|
1524
|
+
if (plugin.outro) hookUsage.union(HookUsageKind.outro);
|
|
1525
|
+
return hookUsage;
|
|
1526
|
+
}
|
|
1527
|
+
//#endregion
|
|
1528
|
+
//#region src/plugin/bindingify-plugin.ts
|
|
1529
|
+
function bindingifyPlugin(plugin, options, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode) {
|
|
1530
|
+
const args = {
|
|
1531
|
+
plugin,
|
|
1532
|
+
options,
|
|
1533
|
+
outputOptions,
|
|
1534
|
+
pluginContextData,
|
|
1535
|
+
onLog,
|
|
1536
|
+
logLevel,
|
|
1537
|
+
watchMode,
|
|
1538
|
+
normalizedOutputPlugins
|
|
1539
|
+
};
|
|
1540
|
+
const { plugin: buildStart, meta: buildStartMeta } = bindingifyBuildStart(args);
|
|
1541
|
+
const { plugin: resolveId, meta: resolveIdMeta, filter: resolveIdFilter } = bindingifyResolveId(args);
|
|
1542
|
+
const { plugin: resolveDynamicImport, meta: resolveDynamicImportMeta } = bindingifyResolveDynamicImport(args);
|
|
1543
|
+
const { plugin: buildEnd, meta: buildEndMeta } = bindingifyBuildEnd(args);
|
|
1544
|
+
const { plugin: transform, meta: transformMeta, filter: transformFilter } = bindingifyTransform(args);
|
|
1545
|
+
const { plugin: moduleParsed, meta: moduleParsedMeta } = bindingifyModuleParsed(args);
|
|
1546
|
+
const { plugin: load, meta: loadMeta, filter: loadFilter } = bindingifyLoad(args);
|
|
1547
|
+
const { plugin: renderChunk, meta: renderChunkMeta, filter: renderChunkFilter } = bindingifyRenderChunk(args);
|
|
1548
|
+
const { plugin: augmentChunkHash, meta: augmentChunkHashMeta } = bindingifyAugmentChunkHash(args);
|
|
1549
|
+
const { plugin: renderStart, meta: renderStartMeta } = bindingifyRenderStart(args);
|
|
1550
|
+
const { plugin: renderError, meta: renderErrorMeta } = bindingifyRenderError(args);
|
|
1551
|
+
const { plugin: generateBundle, meta: generateBundleMeta } = bindingifyGenerateBundle(args);
|
|
1552
|
+
const { plugin: writeBundle, meta: writeBundleMeta } = bindingifyWriteBundle(args);
|
|
1553
|
+
const { plugin: closeBundle, meta: closeBundleMeta } = bindingifyCloseBundle(args);
|
|
1554
|
+
const { plugin: banner, meta: bannerMeta } = bindingifyBanner(args);
|
|
1555
|
+
const { plugin: footer, meta: footerMeta } = bindingifyFooter(args);
|
|
1556
|
+
const { plugin: intro, meta: introMeta } = bindingifyIntro(args);
|
|
1557
|
+
const { plugin: outro, meta: outroMeta } = bindingifyOutro(args);
|
|
1558
|
+
const { plugin: watchChange, meta: watchChangeMeta } = bindingifyWatchChange(args);
|
|
1559
|
+
const { plugin: closeWatcher, meta: closeWatcherMeta } = bindingifyCloseWatcher(args);
|
|
1560
|
+
let hookUsage = extractHookUsage(plugin).inner();
|
|
1561
|
+
return wrapHandlers({
|
|
1562
|
+
name: plugin.name,
|
|
1563
|
+
buildStart,
|
|
1564
|
+
buildStartMeta,
|
|
1565
|
+
resolveId,
|
|
1566
|
+
resolveIdMeta,
|
|
1567
|
+
resolveIdFilter,
|
|
1568
|
+
resolveDynamicImport,
|
|
1569
|
+
resolveDynamicImportMeta,
|
|
1570
|
+
buildEnd,
|
|
1571
|
+
buildEndMeta,
|
|
1572
|
+
transform,
|
|
1573
|
+
transformMeta,
|
|
1574
|
+
transformFilter,
|
|
1575
|
+
moduleParsed,
|
|
1576
|
+
moduleParsedMeta,
|
|
1577
|
+
load,
|
|
1578
|
+
loadMeta,
|
|
1579
|
+
loadFilter,
|
|
1580
|
+
renderChunk,
|
|
1581
|
+
renderChunkMeta,
|
|
1582
|
+
renderChunkFilter,
|
|
1583
|
+
augmentChunkHash,
|
|
1584
|
+
augmentChunkHashMeta,
|
|
1585
|
+
renderStart,
|
|
1586
|
+
renderStartMeta,
|
|
1587
|
+
renderError,
|
|
1588
|
+
renderErrorMeta,
|
|
1589
|
+
generateBundle,
|
|
1590
|
+
generateBundleMeta,
|
|
1591
|
+
writeBundle,
|
|
1592
|
+
writeBundleMeta,
|
|
1593
|
+
closeBundle,
|
|
1594
|
+
closeBundleMeta,
|
|
1595
|
+
banner,
|
|
1596
|
+
bannerMeta,
|
|
1597
|
+
footer,
|
|
1598
|
+
footerMeta,
|
|
1599
|
+
intro,
|
|
1600
|
+
introMeta,
|
|
1601
|
+
outro,
|
|
1602
|
+
outroMeta,
|
|
1603
|
+
watchChange,
|
|
1604
|
+
watchChangeMeta,
|
|
1605
|
+
closeWatcher,
|
|
1606
|
+
closeWatcherMeta,
|
|
1607
|
+
hookUsage
|
|
1608
|
+
});
|
|
1609
|
+
}
|
|
1610
|
+
function wrapHandlers(plugin) {
|
|
1611
|
+
for (const hookName of [
|
|
1612
|
+
"buildStart",
|
|
1613
|
+
"resolveId",
|
|
1614
|
+
"resolveDynamicImport",
|
|
1615
|
+
"buildEnd",
|
|
1616
|
+
"transform",
|
|
1617
|
+
"moduleParsed",
|
|
1618
|
+
"load",
|
|
1619
|
+
"renderChunk",
|
|
1620
|
+
"augmentChunkHash",
|
|
1621
|
+
"renderStart",
|
|
1622
|
+
"renderError",
|
|
1623
|
+
"generateBundle",
|
|
1624
|
+
"writeBundle",
|
|
1625
|
+
"closeBundle",
|
|
1626
|
+
"banner",
|
|
1627
|
+
"footer",
|
|
1628
|
+
"intro",
|
|
1629
|
+
"outro",
|
|
1630
|
+
"watchChange",
|
|
1631
|
+
"closeWatcher"
|
|
1632
|
+
]) {
|
|
1633
|
+
const handler = plugin[hookName];
|
|
1634
|
+
if (handler) plugin[hookName] = async (...args) => {
|
|
1635
|
+
try {
|
|
1636
|
+
return await handler(...args);
|
|
1637
|
+
} catch (e) {
|
|
1638
|
+
return error(logPluginError(e, plugin.name, {
|
|
1639
|
+
hook: hookName,
|
|
1640
|
+
id: hookName === "transform" ? args[2] : void 0
|
|
1641
|
+
}));
|
|
1642
|
+
}
|
|
1643
|
+
};
|
|
1644
|
+
}
|
|
1645
|
+
return plugin;
|
|
1646
|
+
}
|
|
1647
|
+
//#endregion
|
|
1648
|
+
//#region src/options/normalized-input-options.ts
|
|
1649
|
+
var NormalizedInputOptionsImpl = class extends PlainObjectLike {
|
|
1650
|
+
inner;
|
|
1651
|
+
constructor(inner, onLog, inputPlugins) {
|
|
1652
|
+
super();
|
|
1653
|
+
this.onLog = onLog;
|
|
1654
|
+
this.inputPlugins = inputPlugins;
|
|
1655
|
+
this.inner = inner;
|
|
1656
|
+
}
|
|
1657
|
+
get shimMissingExports() {
|
|
1658
|
+
return this.inner.shimMissingExports;
|
|
1659
|
+
}
|
|
1660
|
+
get input() {
|
|
1661
|
+
return this.inner.input;
|
|
1662
|
+
}
|
|
1663
|
+
get cwd() {
|
|
1664
|
+
return this.inner.cwd;
|
|
1665
|
+
}
|
|
1666
|
+
get platform() {
|
|
1667
|
+
return this.inner.platform;
|
|
1668
|
+
}
|
|
1669
|
+
get context() {
|
|
1670
|
+
return this.inner.context;
|
|
1671
|
+
}
|
|
1672
|
+
get plugins() {
|
|
1673
|
+
return this.inputPlugins;
|
|
1674
|
+
}
|
|
1675
|
+
};
|
|
1676
|
+
__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "shimMissingExports", null);
|
|
1677
|
+
__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "input", null);
|
|
1678
|
+
__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "cwd", null);
|
|
1679
|
+
__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "platform", null);
|
|
1680
|
+
__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "context", null);
|
|
1681
|
+
//#endregion
|
|
1682
|
+
//#region src/options/normalized-output-options.ts
|
|
1683
|
+
var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
1684
|
+
constructor(inner, outputOptions, normalizedOutputPlugins) {
|
|
1685
|
+
super();
|
|
1686
|
+
this.inner = inner;
|
|
1687
|
+
this.outputOptions = outputOptions;
|
|
1688
|
+
this.normalizedOutputPlugins = normalizedOutputPlugins;
|
|
1689
|
+
}
|
|
1690
|
+
get dir() {
|
|
1691
|
+
return this.inner.dir ?? void 0;
|
|
1692
|
+
}
|
|
1693
|
+
get entryFileNames() {
|
|
1694
|
+
return this.inner.entryFilenames || this.outputOptions.entryFileNames;
|
|
1695
|
+
}
|
|
1696
|
+
get chunkFileNames() {
|
|
1697
|
+
return this.inner.chunkFilenames || this.outputOptions.chunkFileNames;
|
|
1698
|
+
}
|
|
1699
|
+
get assetFileNames() {
|
|
1700
|
+
return this.inner.assetFilenames || this.outputOptions.assetFileNames;
|
|
1701
|
+
}
|
|
1702
|
+
get format() {
|
|
1703
|
+
return this.inner.format;
|
|
1704
|
+
}
|
|
1705
|
+
get exports() {
|
|
1706
|
+
return this.inner.exports;
|
|
1707
|
+
}
|
|
1708
|
+
get sourcemap() {
|
|
1709
|
+
return this.inner.sourcemap;
|
|
1710
|
+
}
|
|
1711
|
+
get sourcemapBaseUrl() {
|
|
1712
|
+
return this.inner.sourcemapBaseUrl ?? void 0;
|
|
1713
|
+
}
|
|
1714
|
+
get shimMissingExports() {
|
|
1715
|
+
return this.inner.shimMissingExports;
|
|
1716
|
+
}
|
|
1717
|
+
get name() {
|
|
1718
|
+
return this.inner.name ?? void 0;
|
|
1719
|
+
}
|
|
1720
|
+
get file() {
|
|
1721
|
+
return this.inner.file ?? void 0;
|
|
1722
|
+
}
|
|
1723
|
+
get codeSplitting() {
|
|
1724
|
+
return this.inner.codeSplitting;
|
|
1725
|
+
}
|
|
1726
|
+
/**
|
|
1727
|
+
* @deprecated Use `codeSplitting` instead.
|
|
1728
|
+
*/
|
|
1729
|
+
get inlineDynamicImports() {
|
|
1730
|
+
return !this.inner.codeSplitting;
|
|
1731
|
+
}
|
|
1732
|
+
get dynamicImportInCjs() {
|
|
1733
|
+
return this.inner.dynamicImportInCjs;
|
|
1734
|
+
}
|
|
1735
|
+
get externalLiveBindings() {
|
|
1736
|
+
return this.inner.externalLiveBindings;
|
|
1737
|
+
}
|
|
1738
|
+
get banner() {
|
|
1739
|
+
return normalizeAddon(this.outputOptions.banner);
|
|
1740
|
+
}
|
|
1741
|
+
get footer() {
|
|
1742
|
+
return normalizeAddon(this.outputOptions.footer);
|
|
1743
|
+
}
|
|
1744
|
+
get postBanner() {
|
|
1745
|
+
return normalizeAddon(this.outputOptions.postBanner);
|
|
1746
|
+
}
|
|
1747
|
+
get postFooter() {
|
|
1748
|
+
return normalizeAddon(this.outputOptions.postFooter);
|
|
1749
|
+
}
|
|
1750
|
+
get intro() {
|
|
1751
|
+
return normalizeAddon(this.outputOptions.intro);
|
|
1752
|
+
}
|
|
1753
|
+
get outro() {
|
|
1754
|
+
return normalizeAddon(this.outputOptions.outro);
|
|
1755
|
+
}
|
|
1756
|
+
get esModule() {
|
|
1757
|
+
return this.inner.esModule;
|
|
1758
|
+
}
|
|
1759
|
+
get extend() {
|
|
1760
|
+
return this.inner.extend;
|
|
1761
|
+
}
|
|
1762
|
+
get globals() {
|
|
1763
|
+
return this.inner.globals || this.outputOptions.globals;
|
|
1764
|
+
}
|
|
1765
|
+
get paths() {
|
|
1766
|
+
return this.outputOptions.paths;
|
|
1767
|
+
}
|
|
1768
|
+
get hashCharacters() {
|
|
1769
|
+
return this.inner.hashCharacters;
|
|
1770
|
+
}
|
|
1771
|
+
get sourcemapDebugIds() {
|
|
1772
|
+
return this.inner.sourcemapDebugIds;
|
|
1773
|
+
}
|
|
1774
|
+
get sourcemapExcludeSources() {
|
|
1775
|
+
return this.inner.sourcemapExcludeSources;
|
|
1776
|
+
}
|
|
1777
|
+
get sourcemapIgnoreList() {
|
|
1778
|
+
return this.outputOptions.sourcemapIgnoreList;
|
|
1779
|
+
}
|
|
1780
|
+
get sourcemapPathTransform() {
|
|
1781
|
+
return this.outputOptions.sourcemapPathTransform;
|
|
1782
|
+
}
|
|
1783
|
+
get minify() {
|
|
1784
|
+
let ret = this.inner.minify;
|
|
1785
|
+
if (typeof ret === "object" && ret !== null) {
|
|
1786
|
+
delete ret["codegen"];
|
|
1787
|
+
delete ret["module"];
|
|
1788
|
+
delete ret["sourcemap"];
|
|
1789
|
+
}
|
|
1790
|
+
return ret;
|
|
1791
|
+
}
|
|
1792
|
+
get legalComments() {
|
|
1793
|
+
return this.inner.legalComments;
|
|
1794
|
+
}
|
|
1795
|
+
get comments() {
|
|
1796
|
+
const c = this.inner.comments;
|
|
1797
|
+
return {
|
|
1798
|
+
legal: c.legal ?? true,
|
|
1799
|
+
annotation: c.annotation ?? true,
|
|
1800
|
+
jsdoc: c.jsdoc ?? true
|
|
1801
|
+
};
|
|
1802
|
+
}
|
|
1803
|
+
get polyfillRequire() {
|
|
1804
|
+
return this.inner.polyfillRequire;
|
|
1805
|
+
}
|
|
1806
|
+
get plugins() {
|
|
1807
|
+
return this.normalizedOutputPlugins;
|
|
1808
|
+
}
|
|
1809
|
+
get preserveModules() {
|
|
1810
|
+
return this.inner.preserveModules;
|
|
1811
|
+
}
|
|
1812
|
+
get preserveModulesRoot() {
|
|
1813
|
+
return this.inner.preserveModulesRoot;
|
|
1814
|
+
}
|
|
1815
|
+
get virtualDirname() {
|
|
1816
|
+
return this.inner.virtualDirname;
|
|
1817
|
+
}
|
|
1818
|
+
get topLevelVar() {
|
|
1819
|
+
return this.inner.topLevelVar ?? false;
|
|
1820
|
+
}
|
|
1821
|
+
get minifyInternalExports() {
|
|
1822
|
+
return this.inner.minifyInternalExports ?? false;
|
|
1823
|
+
}
|
|
1824
|
+
};
|
|
1825
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "dir", null);
|
|
1826
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "entryFileNames", null);
|
|
1827
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "chunkFileNames", null);
|
|
1828
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "assetFileNames", null);
|
|
1829
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "format", null);
|
|
1830
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "exports", null);
|
|
1831
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemap", null);
|
|
1832
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapBaseUrl", null);
|
|
1833
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "shimMissingExports", null);
|
|
1834
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "name", null);
|
|
1835
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "file", null);
|
|
1836
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "codeSplitting", null);
|
|
1837
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "inlineDynamicImports", null);
|
|
1838
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "dynamicImportInCjs", null);
|
|
1839
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "externalLiveBindings", null);
|
|
1840
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "banner", null);
|
|
1841
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "footer", null);
|
|
1842
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "postBanner", null);
|
|
1843
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "postFooter", null);
|
|
1844
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "intro", null);
|
|
1845
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "outro", null);
|
|
1846
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "esModule", null);
|
|
1847
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "extend", null);
|
|
1848
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "globals", null);
|
|
1849
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "paths", null);
|
|
1850
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "hashCharacters", null);
|
|
1851
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapDebugIds", null);
|
|
1852
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapExcludeSources", null);
|
|
1853
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapIgnoreList", null);
|
|
1854
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapPathTransform", null);
|
|
1855
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "minify", null);
|
|
1856
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "legalComments", null);
|
|
1857
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "comments", null);
|
|
1858
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "polyfillRequire", null);
|
|
1859
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "plugins", null);
|
|
1860
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "preserveModules", null);
|
|
1861
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "preserveModulesRoot", null);
|
|
1862
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "virtualDirname", null);
|
|
1863
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "topLevelVar", null);
|
|
1864
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "minifyInternalExports", null);
|
|
1865
|
+
function normalizeAddon(value) {
|
|
1866
|
+
if (typeof value === "function") return value;
|
|
1867
|
+
return () => value || "";
|
|
1868
|
+
}
|
|
1869
|
+
//#endregion
|
|
1870
|
+
//#region src/plugin/plugin-context-data.ts
|
|
1871
|
+
var PluginContextData = class {
|
|
1872
|
+
moduleOptionMap = /* @__PURE__ */ new Map();
|
|
1873
|
+
resolveOptionsMap = /* @__PURE__ */ new Map();
|
|
1874
|
+
loadModulePromiseMap = /* @__PURE__ */ new Map();
|
|
1875
|
+
renderedChunkMeta = null;
|
|
1876
|
+
normalizedInputOptions = null;
|
|
1877
|
+
normalizedOutputOptions = null;
|
|
1878
|
+
constructor(onLog, outputOptions, normalizedInputPlugins, normalizedOutputPlugins) {
|
|
1879
|
+
this.onLog = onLog;
|
|
1880
|
+
this.outputOptions = outputOptions;
|
|
1881
|
+
this.normalizedInputPlugins = normalizedInputPlugins;
|
|
1882
|
+
this.normalizedOutputPlugins = normalizedOutputPlugins;
|
|
1883
|
+
}
|
|
1884
|
+
updateModuleOption(id, option) {
|
|
1885
|
+
const existing = this.moduleOptionMap.get(id);
|
|
1886
|
+
if (existing) {
|
|
1887
|
+
if (option.moduleSideEffects != null) existing.moduleSideEffects = option.moduleSideEffects;
|
|
1888
|
+
if (option.meta != null) Object.assign(existing.meta, option.meta);
|
|
1889
|
+
if (option.invalidate != null) existing.invalidate = option.invalidate;
|
|
1890
|
+
} else {
|
|
1891
|
+
this.moduleOptionMap.set(id, option);
|
|
1892
|
+
return option;
|
|
1893
|
+
}
|
|
1894
|
+
return existing;
|
|
1895
|
+
}
|
|
1896
|
+
getModuleOption(id) {
|
|
1897
|
+
const option = this.moduleOptionMap.get(id);
|
|
1898
|
+
if (!option) {
|
|
1899
|
+
const raw = {
|
|
1900
|
+
moduleSideEffects: null,
|
|
1901
|
+
meta: {}
|
|
1902
|
+
};
|
|
1903
|
+
this.moduleOptionMap.set(id, raw);
|
|
1904
|
+
return raw;
|
|
1905
|
+
}
|
|
1906
|
+
return option;
|
|
1907
|
+
}
|
|
1908
|
+
getModuleInfo(id, context) {
|
|
1909
|
+
const bindingInfo = context.getModuleInfo(id);
|
|
1910
|
+
if (bindingInfo) {
|
|
1911
|
+
const info = transformModuleInfo(bindingInfo, this.getModuleOption(id));
|
|
1912
|
+
return this.proxyModuleInfo(id, info);
|
|
1913
|
+
}
|
|
1914
|
+
return null;
|
|
1915
|
+
}
|
|
1916
|
+
proxyModuleInfo(id, info) {
|
|
1917
|
+
let moduleSideEffects = info.moduleSideEffects;
|
|
1918
|
+
Object.defineProperty(info, "moduleSideEffects", {
|
|
1919
|
+
get() {
|
|
1920
|
+
return moduleSideEffects;
|
|
1921
|
+
},
|
|
1922
|
+
set: (v) => {
|
|
1923
|
+
this.updateModuleOption(id, {
|
|
1924
|
+
moduleSideEffects: v,
|
|
1925
|
+
meta: info.meta,
|
|
1926
|
+
invalidate: true
|
|
1927
|
+
});
|
|
1928
|
+
moduleSideEffects = v;
|
|
1929
|
+
}
|
|
1930
|
+
});
|
|
1931
|
+
return info;
|
|
1932
|
+
}
|
|
1933
|
+
getModuleIds(context) {
|
|
1934
|
+
return context.getModuleIds().values();
|
|
1935
|
+
}
|
|
1936
|
+
saveResolveOptions(options) {
|
|
1937
|
+
const index = this.resolveOptionsMap.size;
|
|
1938
|
+
this.resolveOptionsMap.set(index, options);
|
|
1939
|
+
return index;
|
|
1940
|
+
}
|
|
1941
|
+
getSavedResolveOptions(receipt) {
|
|
1942
|
+
return this.resolveOptionsMap.get(receipt);
|
|
1943
|
+
}
|
|
1944
|
+
removeSavedResolveOptions(receipt) {
|
|
1945
|
+
this.resolveOptionsMap.delete(receipt);
|
|
1946
|
+
}
|
|
1947
|
+
setRenderChunkMeta(meta) {
|
|
1948
|
+
this.renderedChunkMeta = meta;
|
|
1949
|
+
}
|
|
1950
|
+
getRenderChunkMeta() {
|
|
1951
|
+
return this.renderedChunkMeta;
|
|
1952
|
+
}
|
|
1953
|
+
getInputOptions(opts) {
|
|
1954
|
+
this.normalizedInputOptions ??= new NormalizedInputOptionsImpl(opts, this.onLog, this.normalizedInputPlugins);
|
|
1955
|
+
return this.normalizedInputOptions;
|
|
1956
|
+
}
|
|
1957
|
+
getOutputOptions(opts) {
|
|
1958
|
+
this.normalizedOutputOptions ??= new NormalizedOutputOptionsImpl(opts, this.outputOptions, this.normalizedOutputPlugins);
|
|
1959
|
+
return this.normalizedOutputOptions;
|
|
1960
|
+
}
|
|
1961
|
+
clear() {
|
|
1962
|
+
this.renderedChunkMeta = null;
|
|
1963
|
+
this.loadModulePromiseMap.clear();
|
|
1964
|
+
}
|
|
1965
|
+
};
|
|
1966
|
+
//#endregion
|
|
1967
|
+
//#region src/utils/normalize-transform-options.ts
|
|
1968
|
+
/**
|
|
1969
|
+
* Normalizes transform options by extracting `define`, `inject`, and `dropLabels` separately from OXC transform options.
|
|
1970
|
+
*
|
|
1971
|
+
* Prioritizes values from `transform.define`, `transform.inject`, and `transform.dropLabels` over deprecated top-level options.
|
|
1972
|
+
*/
|
|
1973
|
+
function normalizeTransformOptions(inputOptions) {
|
|
1974
|
+
const transform = inputOptions.transform;
|
|
1975
|
+
const define = transform?.define ? Object.entries(transform.define) : void 0;
|
|
1976
|
+
const inject = transform?.inject;
|
|
1977
|
+
const dropLabels = transform?.dropLabels;
|
|
1978
|
+
let oxcTransformOptions;
|
|
1979
|
+
if (transform) {
|
|
1980
|
+
const { define: _define, inject: _inject, dropLabels: _dropLabels, ...rest } = transform;
|
|
1981
|
+
if (Object.keys(rest).length > 0) {
|
|
1982
|
+
if (rest.jsx === false) rest.jsx = "disable";
|
|
1983
|
+
oxcTransformOptions = rest;
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
return {
|
|
1987
|
+
define,
|
|
1988
|
+
inject,
|
|
1989
|
+
dropLabels,
|
|
1990
|
+
oxcTransformOptions
|
|
1991
|
+
};
|
|
1992
|
+
}
|
|
1993
|
+
//#endregion
|
|
1994
|
+
//#region src/utils/bindingify-input-options.ts
|
|
1995
|
+
function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normalizedInputPlugins, normalizedOutputPlugins, onLog, logLevel, watchMode) {
|
|
1996
|
+
const pluginContextData = new PluginContextData(onLog, outputOptions, normalizedInputPlugins, normalizedOutputPlugins);
|
|
1997
|
+
const plugins = rawPlugins.map((plugin) => {
|
|
1998
|
+
if ("_parallel" in plugin) return;
|
|
1999
|
+
if (plugin instanceof BuiltinPlugin) switch (plugin.name) {
|
|
2000
|
+
case "builtin:vite-manifest": return bindingifyManifestPlugin(plugin, pluginContextData);
|
|
2001
|
+
default: return bindingifyBuiltInPlugin(plugin);
|
|
2002
|
+
}
|
|
2003
|
+
return bindingifyPlugin(plugin, inputOptions, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode);
|
|
2004
|
+
});
|
|
2005
|
+
const normalizedTransform = normalizeTransformOptions(inputOptions);
|
|
2006
|
+
return {
|
|
2007
|
+
input: bindingifyInput(inputOptions.input),
|
|
2008
|
+
plugins,
|
|
2009
|
+
cwd: inputOptions.cwd ?? process.cwd(),
|
|
2010
|
+
external: bindingifyExternal(inputOptions.external),
|
|
2011
|
+
resolve: bindingifyResolve(inputOptions.resolve),
|
|
2012
|
+
platform: inputOptions.platform,
|
|
2013
|
+
shimMissingExports: inputOptions.shimMissingExports,
|
|
2014
|
+
logLevel: bindingifyLogLevel(logLevel),
|
|
2015
|
+
onLog: async (level, log) => onLog(level, log),
|
|
2016
|
+
treeshake: bindingifyTreeshakeOptions(inputOptions.treeshake),
|
|
2017
|
+
moduleTypes: inputOptions.moduleTypes,
|
|
2018
|
+
define: normalizedTransform.define,
|
|
2019
|
+
inject: bindingifyInject(normalizedTransform.inject),
|
|
2020
|
+
experimental: bindingifyExperimental(inputOptions.experimental),
|
|
2021
|
+
profilerNames: outputOptions.generatedCode?.profilerNames,
|
|
2022
|
+
transform: normalizedTransform.oxcTransformOptions,
|
|
2023
|
+
watch: bindingifyWatch(inputOptions.watch),
|
|
2024
|
+
dropLabels: normalizedTransform.dropLabels,
|
|
2025
|
+
keepNames: outputOptions.keepNames,
|
|
2026
|
+
checks: inputOptions.checks,
|
|
2027
|
+
deferSyncScanData: () => {
|
|
2028
|
+
let ret = [];
|
|
2029
|
+
pluginContextData.moduleOptionMap.forEach((value, key) => {
|
|
2030
|
+
if (value.invalidate) ret.push({
|
|
2031
|
+
id: key,
|
|
2032
|
+
sideEffects: value.moduleSideEffects ?? void 0
|
|
2033
|
+
});
|
|
2034
|
+
});
|
|
2035
|
+
return ret;
|
|
2036
|
+
},
|
|
2037
|
+
makeAbsoluteExternalsRelative: bindingifyMakeAbsoluteExternalsRelative(inputOptions.makeAbsoluteExternalsRelative),
|
|
2038
|
+
devtools: inputOptions.devtools,
|
|
2039
|
+
invalidateJsSideCache: pluginContextData.clear.bind(pluginContextData),
|
|
2040
|
+
preserveEntrySignatures: bindingifyPreserveEntrySignatures(inputOptions.preserveEntrySignatures),
|
|
2041
|
+
optimization: inputOptions.optimization,
|
|
2042
|
+
context: inputOptions.context,
|
|
2043
|
+
tsconfig: inputOptions.resolve?.tsconfigFilename ?? inputOptions.tsconfig
|
|
2044
|
+
};
|
|
2045
|
+
}
|
|
2046
|
+
function bindingifyDevMode(devMode) {
|
|
2047
|
+
if (devMode) {
|
|
2048
|
+
if (typeof devMode === "boolean") return devMode ? {} : void 0;
|
|
2049
|
+
return devMode;
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
function bindingifyAttachDebugInfo(attachDebugInfo) {
|
|
2053
|
+
switch (attachDebugInfo) {
|
|
2054
|
+
case void 0: return;
|
|
2055
|
+
case "full": return import_binding.BindingAttachDebugInfo.Full;
|
|
2056
|
+
case "simple": return import_binding.BindingAttachDebugInfo.Simple;
|
|
2057
|
+
case "none": return import_binding.BindingAttachDebugInfo.None;
|
|
2058
|
+
}
|
|
2059
|
+
}
|
|
2060
|
+
function bindingifyExternal(external) {
|
|
2061
|
+
if (external) {
|
|
2062
|
+
if (typeof external === "function") return (id, importer, isResolved) => {
|
|
2063
|
+
if (id.startsWith("\0")) return false;
|
|
2064
|
+
return external(id, importer, isResolved) ?? false;
|
|
2065
|
+
};
|
|
2066
|
+
return arraify(external);
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
function bindingifyExperimental(experimental) {
|
|
2070
|
+
let chunkModulesOrder = import_binding.BindingChunkModuleOrderBy.ExecOrder;
|
|
2071
|
+
if (experimental?.chunkModulesOrder) switch (experimental.chunkModulesOrder) {
|
|
2072
|
+
case "exec-order":
|
|
2073
|
+
chunkModulesOrder = import_binding.BindingChunkModuleOrderBy.ExecOrder;
|
|
2074
|
+
break;
|
|
2075
|
+
case "module-id":
|
|
2076
|
+
chunkModulesOrder = import_binding.BindingChunkModuleOrderBy.ModuleId;
|
|
2077
|
+
break;
|
|
2078
|
+
default: throw new Error(`Unexpected chunkModulesOrder: ${experimental.chunkModulesOrder}`);
|
|
2079
|
+
}
|
|
2080
|
+
return {
|
|
2081
|
+
viteMode: experimental?.viteMode,
|
|
2082
|
+
resolveNewUrlToAsset: experimental?.resolveNewUrlToAsset,
|
|
2083
|
+
devMode: bindingifyDevMode(experimental?.devMode),
|
|
2084
|
+
attachDebugInfo: bindingifyAttachDebugInfo(experimental?.attachDebugInfo),
|
|
2085
|
+
chunkModulesOrder,
|
|
2086
|
+
chunkImportMap: experimental?.chunkImportMap,
|
|
2087
|
+
onDemandWrapping: experimental?.onDemandWrapping,
|
|
2088
|
+
incrementalBuild: experimental?.incrementalBuild,
|
|
2089
|
+
nativeMagicString: experimental?.nativeMagicString,
|
|
2090
|
+
chunkOptimization: experimental?.chunkOptimization,
|
|
2091
|
+
lazyBarrel: experimental?.lazyBarrel
|
|
2092
|
+
};
|
|
2093
|
+
}
|
|
2094
|
+
function bindingifyResolve(resolve) {
|
|
2095
|
+
const yarnPnp = typeof process === "object" && !!process.versions?.pnp;
|
|
2096
|
+
if (resolve) {
|
|
2097
|
+
const { alias, extensionAlias, ...rest } = resolve;
|
|
2098
|
+
return {
|
|
2099
|
+
alias: alias ? Object.entries(alias).map(([name, replacement]) => ({
|
|
2100
|
+
find: name,
|
|
2101
|
+
replacements: replacement === false ? [void 0] : arraify(replacement)
|
|
2102
|
+
})) : void 0,
|
|
2103
|
+
extensionAlias: extensionAlias ? Object.entries(extensionAlias).map(([name, value]) => ({
|
|
2104
|
+
target: name,
|
|
2105
|
+
replacements: value
|
|
2106
|
+
})) : void 0,
|
|
2107
|
+
yarnPnp,
|
|
2108
|
+
...rest
|
|
2109
|
+
};
|
|
2110
|
+
} else return { yarnPnp };
|
|
2111
|
+
}
|
|
2112
|
+
function bindingifyInject(inject) {
|
|
2113
|
+
if (inject) return Object.entries(inject).map(([alias, item]) => {
|
|
2114
|
+
if (Array.isArray(item)) {
|
|
2115
|
+
if (item[1] === "*") return {
|
|
2116
|
+
tagNamespace: true,
|
|
2117
|
+
alias,
|
|
2118
|
+
from: item[0]
|
|
2119
|
+
};
|
|
2120
|
+
return {
|
|
2121
|
+
tagNamed: true,
|
|
2122
|
+
alias,
|
|
2123
|
+
from: item[0],
|
|
2124
|
+
imported: item[1]
|
|
2125
|
+
};
|
|
2126
|
+
} else return {
|
|
2127
|
+
tagNamed: true,
|
|
2128
|
+
imported: "default",
|
|
2129
|
+
alias,
|
|
2130
|
+
from: item
|
|
2131
|
+
};
|
|
2132
|
+
});
|
|
2133
|
+
}
|
|
2134
|
+
function bindingifyLogLevel(logLevel) {
|
|
2135
|
+
switch (logLevel) {
|
|
2136
|
+
case "silent": return import_binding.BindingLogLevel.Silent;
|
|
2137
|
+
case "debug": return import_binding.BindingLogLevel.Debug;
|
|
2138
|
+
case "warn": return import_binding.BindingLogLevel.Warn;
|
|
2139
|
+
case "info": return import_binding.BindingLogLevel.Info;
|
|
2140
|
+
default: throw new Error(`Unexpected log level: ${logLevel}`);
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
function bindingifyInput(input) {
|
|
2144
|
+
if (input === void 0) return [];
|
|
2145
|
+
if (typeof input === "string") return [{ import: input }];
|
|
2146
|
+
if (Array.isArray(input)) return input.map((src) => ({ import: src }));
|
|
2147
|
+
return Object.entries(input).map(([name, import_path]) => {
|
|
2148
|
+
return {
|
|
2149
|
+
name,
|
|
2150
|
+
import: import_path
|
|
2151
|
+
};
|
|
2152
|
+
});
|
|
2153
|
+
}
|
|
2154
|
+
function bindingifyWatch(watch) {
|
|
2155
|
+
if (watch) {
|
|
2156
|
+
if (watch.notify) console.warn("The \"watch.notify\" option is deprecated. Please use \"watch.watcher\" instead.");
|
|
2157
|
+
const watcher = {
|
|
2158
|
+
...watch.notify,
|
|
2159
|
+
...watch.watcher
|
|
2160
|
+
};
|
|
2161
|
+
return {
|
|
2162
|
+
buildDelay: watch.buildDelay,
|
|
2163
|
+
skipWrite: watch.skipWrite,
|
|
2164
|
+
usePolling: watcher.usePolling,
|
|
2165
|
+
pollInterval: watcher.pollInterval,
|
|
2166
|
+
compareContentsForPolling: watcher.compareContentsForPolling,
|
|
2167
|
+
useDebounce: watcher.useDebounce,
|
|
2168
|
+
debounceDelay: watcher.debounceDelay,
|
|
2169
|
+
debounceTickRate: watcher.debounceTickRate,
|
|
2170
|
+
include: normalizedStringOrRegex(watch.include),
|
|
2171
|
+
exclude: normalizedStringOrRegex(watch.exclude),
|
|
2172
|
+
onInvalidate: (...args) => watch.onInvalidate?.(...args)
|
|
2173
|
+
};
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2176
|
+
function bindingifyTreeshakeOptions(config) {
|
|
2177
|
+
if (config === false) return;
|
|
2178
|
+
if (config === true || config === void 0) return { moduleSideEffects: true };
|
|
2179
|
+
let normalizedConfig = {
|
|
2180
|
+
moduleSideEffects: true,
|
|
2181
|
+
annotations: config.annotations,
|
|
2182
|
+
manualPureFunctions: config.manualPureFunctions,
|
|
2183
|
+
unknownGlobalSideEffects: config.unknownGlobalSideEffects,
|
|
2184
|
+
invalidImportSideEffects: config.invalidImportSideEffects,
|
|
2185
|
+
commonjs: config.commonjs
|
|
2186
|
+
};
|
|
2187
|
+
switch (config.propertyReadSideEffects) {
|
|
2188
|
+
case "always":
|
|
2189
|
+
normalizedConfig.propertyReadSideEffects = import_binding.BindingPropertyReadSideEffects.Always;
|
|
2190
|
+
break;
|
|
2191
|
+
case false:
|
|
2192
|
+
normalizedConfig.propertyReadSideEffects = import_binding.BindingPropertyReadSideEffects.False;
|
|
2193
|
+
break;
|
|
2194
|
+
default:
|
|
2195
|
+
}
|
|
2196
|
+
switch (config.propertyWriteSideEffects) {
|
|
2197
|
+
case "always":
|
|
2198
|
+
normalizedConfig.propertyWriteSideEffects = import_binding.BindingPropertyWriteSideEffects.Always;
|
|
2199
|
+
break;
|
|
2200
|
+
case false:
|
|
2201
|
+
normalizedConfig.propertyWriteSideEffects = import_binding.BindingPropertyWriteSideEffects.False;
|
|
2202
|
+
break;
|
|
2203
|
+
default:
|
|
2204
|
+
}
|
|
2205
|
+
if (config.moduleSideEffects === void 0) normalizedConfig.moduleSideEffects = true;
|
|
2206
|
+
else if (config.moduleSideEffects === "no-external") normalizedConfig.moduleSideEffects = [{
|
|
2207
|
+
external: true,
|
|
2208
|
+
sideEffects: false
|
|
2209
|
+
}, {
|
|
2210
|
+
external: false,
|
|
2211
|
+
sideEffects: true
|
|
2212
|
+
}];
|
|
2213
|
+
else normalizedConfig.moduleSideEffects = config.moduleSideEffects;
|
|
2214
|
+
return normalizedConfig;
|
|
2215
|
+
}
|
|
2216
|
+
function bindingifyMakeAbsoluteExternalsRelative(makeAbsoluteExternalsRelative) {
|
|
2217
|
+
if (makeAbsoluteExternalsRelative === "ifRelativeSource") return { type: "IfRelativeSource" };
|
|
2218
|
+
if (typeof makeAbsoluteExternalsRelative === "boolean") return {
|
|
2219
|
+
type: "Bool",
|
|
2220
|
+
field0: makeAbsoluteExternalsRelative
|
|
2221
|
+
};
|
|
2222
|
+
}
|
|
2223
|
+
function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
2224
|
+
if (preserveEntrySignatures == void 0) return;
|
|
2225
|
+
else if (typeof preserveEntrySignatures === "string") return {
|
|
2226
|
+
type: "String",
|
|
2227
|
+
field0: preserveEntrySignatures
|
|
2228
|
+
};
|
|
2229
|
+
else return {
|
|
2230
|
+
type: "Bool",
|
|
2231
|
+
field0: preserveEntrySignatures
|
|
2232
|
+
};
|
|
2233
|
+
}
|
|
2234
|
+
//#endregion
|
|
2235
|
+
export { version as C, description as S, LOG_LEVEL_INFO as _, RolldownMagicString as a, RUNTIME_MODULE_ID as b, __decorate as c, PlainObjectLike as d, MinimalPluginContextImpl as f, LOG_LEVEL_ERROR as g, LOG_LEVEL_DEBUG as h, transformModuleInfo as i, transformAssetSource as l, normalizeLog as m, PluginContextData as n, transformToRollupOutput as o, normalizeHook as p, bindingifyPlugin as r, transformRenderedChunk as s, bindingifyInputOptions as t, lazyProp as u, LOG_LEVEL_WARN as v, VERSION as x, logLevelPriority as y };
|