@jsenv/core 25.6.2 → 26.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser_client/asset-manifest.json +4 -0
- package/dist/{browser_runtime/browser_runtime_c81cd9af.js → browser_client/browser_client_fb33eaa4.js} +3863 -3843
- package/dist/browser_client/browser_client_fb33eaa4.js.map +1089 -0
- package/dist/build_manifest.js +5 -5
- package/dist/compile_proxy/asset-manifest.json +2 -2
- package/dist/compile_proxy/compile_proxy.html__inline__20_651d1e7b.js.map +343 -0
- package/dist/compile_proxy/{compile_proxy_93ec4247.html → compile_proxy_62f952c4.html} +1 -3
- package/dist/redirector/asset-manifest.json +2 -2
- package/dist/redirector/redirector.html__inline__12_171e07b4.js.map +349 -0
- package/dist/redirector/{redirector_ddc79416.html → redirector_8117ec92.html} +1 -3
- package/dist/toolbar/asset-manifest.json +5 -5
- package/dist/toolbar/assets/{light-theme.css_72a60fa3.map → light_theme.css_5bff0336.map} +2 -2
- package/dist/toolbar/assets/{overflow-menu.css_2859d519.map → overflow_menu.css_9a0fc3d8.map} +2 -2
- package/dist/toolbar/assets/{toolbar.main.css_b7d8bec1.map → toolbar_main.css_b1c67dd7.map} +7 -7
- package/dist/toolbar/{toolbar_d6045dd0.html → toolbar_b0c9100c.html} +2 -4
- package/dist/toolbar/{toolbar.main_7d7783d3.js.map → toolbar_main_f54c1bb0.js.map} +31 -31
- package/dist/toolbar_injector/asset-manifest.json +3 -3
- package/dist/toolbar_injector/assets/{jsenv-logo_188b9ca6.svg → jsenv_logo_192011c2.svg} +1 -1
- package/dist/toolbar_injector/{toolbar_injector_c8c214dd.js → toolbar_injector_65b501eb.js} +4 -5
- package/dist/toolbar_injector/toolbar_injector_65b501eb.js.map +294 -0
- package/main.js +19 -14
- package/package.json +8 -8
- package/src/{launchBrowser.js → browser_runtimes.js} +3 -8
- package/src/{buildProject.js → build_project.js} +3 -3
- package/src/{commonJsToJavaScriptModule.js → commonjs_to_js_module.js} +5 -5
- package/src/dev_server.js +13 -6
- package/src/execute.js +3 -3
- package/src/{executeTestPlan.js → execute_test_plan.js} +16 -9
- package/src/{importUsingChildProcess.js → import_using_child_process.js} +2 -2
- package/src/internal/{browser_runtime/browser_runtime.js → browser_client/browser_client.js} +13 -17
- package/src/internal/{browser_runtime/createBrowserRuntime.js → browser_client/browser_client_factory.js} +7 -9
- package/src/internal/{error-stack-remapping/installBrowserErrorStackRemapping.js → browser_client/browser_error_stack_remap.js} +1 -3
- package/src/internal/{browser_runtime → browser_client}/browser_system.js +2 -4
- package/src/internal/{browser_runtime/displayErrorInDocument.js → browser_client/error_in_document.js} +0 -2
- package/src/internal/{browser_runtime/displayErrorNotification.js → browser_client/error_in_notification.js} +0 -1
- package/src/internal/{browser_runtime/makeNamespaceTransferable.js → browser_client/module_namespace_transfer.js} +1 -1
- package/src/internal/{perf_browser.js → browser_client/perf_browser.js} +0 -2
- package/src/internal/browser_detection/browser_detection.js +9 -12
- package/src/internal/browser_detection/{detectAndroid.js → detect_android.js} +0 -0
- package/src/internal/browser_detection/{detectChrome.js → detect_chrome.js} +0 -0
- package/src/internal/browser_detection/{detectEdge.js → detect_edge.js} +0 -0
- package/src/internal/browser_detection/{detectElectron.js → detect_electron.js} +0 -0
- package/src/internal/browser_detection/{detectFirefox.js → detect_firefox.js} +0 -0
- package/src/internal/browser_detection/{detectInternetExplorer.js → detect_internet_explorer.js} +0 -0
- package/src/internal/browser_detection/{detectIOS.js → detect_ios.js} +0 -0
- package/src/internal/browser_detection/{detectOpera.js → detect_opera.js} +0 -0
- package/src/internal/browser_detection/{detectSafari.js → detect_safari.js} +0 -0
- package/src/internal/browser_detection/user_agent_data.js +0 -1
- package/src/internal/browser_launcher/{executeHtmlFile.js → execute_html_file.js} +5 -4
- package/src/internal/browser_launcher/from_playwright.js +3 -3
- package/src/internal/browser_launcher/{trackPageToNotify.js → page_errors_and_logs.js} +1 -1
- package/src/internal/browser_utils/{fetchAndEvalUsingFetch.js → fetch_and_eval.js} +1 -3
- package/src/internal/browser_utils/{fetchAndEvalUsingScript.js → fetch_and_eval_using_script.js} +0 -2
- package/src/internal/browser_utils/fetch_browser.js +1 -1
- package/src/internal/browser_utils/{fetchJson.js → fetch_json.js} +0 -0
- package/src/internal/browser_utils/{fetchUsingXHR.js → fetch_using_xhr.js} +0 -2
- package/src/internal/building/build_logs.js +4 -3
- package/src/internal/building/build_url_generator.js +1 -1
- package/src/internal/building/{buildUsingRollup.js → build_using_rollup.js} +1 -1
- package/src/internal/building/css/{applyPostCss.js → apply_post_css.js} +0 -0
- package/src/internal/building/css/{parseCssRessource.js → jsenv_parse_css.js} +5 -4
- package/src/internal/building/css/{moveCssUrls.js → move_css_urls.js} +1 -1
- package/src/internal/building/css/{parseCssUrls.js → parse_css_urls.js} +1 -1
- package/src/internal/building/css/postcss_plugin_url_visitor.js +1 -0
- package/src/internal/building/css/{replaceCssUrls.js → replace_css_urls.js} +2 -1
- package/src/internal/building/{es_to_system.js → global_format/es_to_system.js} +0 -0
- package/src/internal/building/{parsing.utils.js → html/html_node_mutations.js} +0 -0
- package/src/internal/building/html/{htmlScan.js → html_scan.js} +1 -1
- package/src/internal/building/html/{parseHtmlRessource.js → jsenv_parse_html.js} +5 -6
- package/src/internal/building/html/{minifyHtml.js → minify_html.js} +0 -0
- package/src/internal/building/{css_module.js → import_assertions/css_module.js} +3 -3
- package/src/internal/building/{json_module.js → import_assertions/json_module.js} +0 -0
- package/src/internal/building/importmap/{parseImportmapRessource.js → jsenv_parse_importmap.js} +0 -0
- package/src/internal/building/js/{parseJsRessource.js → jsenv_parse_js.js} +2 -1
- package/src/internal/building/js/{minifyJs.js → minify_js.js} +0 -0
- package/src/internal/building/js/transform_worker.js +1 -1
- package/src/internal/building/json/{parseJsonRessource.js → jsenv_parse_json.js} +0 -0
- package/src/internal/building/{parseRessource.js → parse_ressource.js} +13 -13
- package/src/internal/building/ressource_builder.js +4 -3
- package/src/internal/building/ressource_builder_util.js +2 -2
- package/src/internal/building/rollup_plugin_jsenv.js +22 -20
- package/src/internal/building/{sortObjectByPathnames.js → sort_pathnames.js} +0 -0
- package/src/internal/building/{sourcemap_loader.js → sourcemap/sourcemap_loader.js} +3 -6
- package/src/internal/building/svg/{parseSvgRessource.js → jsenv_parse_svg.js} +4 -3
- package/src/internal/building/url_fetcher.js +1 -1
- package/src/internal/building/url_loader.js +3 -3
- package/src/internal/building/{resolve_import_url_helper.js → url_versioning/resolve_import_url_helper.js} +0 -0
- package/src/internal/building/{url_versioning.js → url_versioning/url_versioning.js} +1 -1
- package/src/internal/building/webmanifest/{parseWebmanifestRessource.js → jsenv_parse_webmanifest.js} +0 -0
- package/src/internal/{compiling → compile_server/commonjs}/rollup_plugin_commonjs_named_exports.js +0 -0
- package/src/internal/{compiling/compileFile.js → compile_server/compile_file.js} +4 -4
- package/src/internal/{compiling/startCompileServer.js → compile_server/compile_server.js} +11 -10
- package/src/internal/{compiling/createCompiledFileService.js → compile_server/compiled_file_service.js} +4 -4
- package/src/internal/{compiling/compileHtml.js → compile_server/html/html_ast.js} +2 -12
- package/src/internal/{compiling → compile_server/html}/html_source_file_service.js +10 -10
- package/src/internal/{compiling/jsenvCompilerForHtml.js → compile_server/html/jsenv_compile_html.js} +12 -12
- package/src/internal/{compiling/jsenvCompilerForImportmap.js → compile_server/importmap/jsenv_compile_importmap.js} +1 -1
- package/src/internal/{compiling/js-compilation-service/ansiToHTML.js → compile_server/js/ansi_to_html.js} +1 -1
- package/src/internal/{compiling/js-compilation-service → compile_server/js}/babelHelper.js +1 -1
- package/src/internal/{compiling → compile_server/js}/babel_parse_error.js +0 -0
- package/src/internal/{compiling/js-compilation-service → compile_server/js}/babel_plugin_babel_helpers_as_jsenv_imports.js +2 -1
- package/src/internal/{compiling → compile_server/js}/babel_plugin_global_this_as_jsenv_import.js +1 -1
- package/src/internal/{compiling → compile_server/js}/babel_plugin_import_assertions.js +1 -0
- package/src/internal/{compiling → compile_server/js}/babel_plugin_import_metadata.js +0 -0
- package/src/internal/{compiling → compile_server/js}/babel_plugin_import_visitor.js +0 -0
- package/src/internal/{compiling → compile_server/js}/babel_plugin_new_stylesheet_as_jsenv_import.js +1 -1
- package/src/internal/{compiling → compile_server/js}/babel_plugin_proxy_external_imports.js +0 -0
- package/src/internal/{compiling/js-compilation-service → compile_server/js}/babel_plugin_regenerator_runtime_as_jsenv_import.js +1 -1
- package/src/internal/{babel_plugin_replace_expressions.js → compile_server/js/babel_plugin_replace_expressions.js} +0 -0
- package/src/internal/{compiling/js-compilation-service → compile_server/js}/babel_plugin_systemjs_prepend.js +2 -2
- package/src/internal/{compiling → compile_server/js}/babel_plugin_transform_import_meta.js +0 -0
- package/src/internal/{compiling → compile_server/js}/babel_plugins.js +0 -0
- package/src/internal/{compiling/js-compilation-service → compile_server/js}/generateBabelHelper.js +1 -1
- package/src/internal/{compiling/js-compilation-service/transformJs.js → compile_server/js/js_transformer.js} +8 -9
- package/src/internal/{compiling/jsenvCompilerForJavaScript.js → compile_server/js/jsenv_compile_js.js} +5 -4
- package/src/internal/{compiling → compile_server/js}/load_babel_plugin_map_from_file.js +0 -0
- package/src/internal/{compiling → compile_server}/jsenv_directory/comparison_utils.js +0 -0
- package/src/internal/{compiling/transformResultToCompilationResult.js → compile_server/jsenv_directory/compilation_result.js} +6 -5
- package/src/internal/{building/buildToCompilationResult.js → compile_server/jsenv_directory/compilation_result_from_build.js} +4 -3
- package/src/internal/{compiling → compile_server}/jsenv_directory/compile_asset.js +0 -0
- package/src/internal/{compiling → compile_server}/jsenv_directory/compile_context.js +3 -3
- package/src/internal/{compiling → compile_server}/jsenv_directory/compile_profile.js +0 -0
- package/src/internal/{compiling → compile_server}/jsenv_directory/file_lock_registry.js +0 -0
- package/src/internal/{compiling → compile_server}/jsenv_directory/file_lock_registry.test.js +0 -0
- package/src/internal/{compiling/jsenv_directory/fs-optimized-for-cache.js → compile_server/jsenv_directory/fs_optimized_for_cache.js} +0 -0
- package/src/internal/{compiling → compile_server}/jsenv_directory/jsenv_directory.js +0 -0
- package/src/internal/{compiling/jsenv_directory/getOrGenerateCompiledFile.js → compile_server/jsenv_directory/reuse_or_create_compiled_file.js} +3 -3
- package/src/internal/{compiling/jsenv_directory/updateMeta.js → compile_server/jsenv_directory/update_compile_cache.js} +2 -2
- package/src/internal/{compiling/jsenv_directory/validateCache.js → compile_server/jsenv_directory/validate_compile_cache.js} +1 -1
- package/src/internal/{compiling → compile_server}/sse_service/sse_service.js +1 -1
- package/src/internal/{executing/coverage → coverage}/babel_plugin_instrument.js +1 -1
- package/src/internal/{executing/coverage_reporter → coverage}/coverage_reporter_html_directory.js +3 -2
- package/src/internal/{executing/coverage_reporter → coverage}/coverage_reporter_json_file.js +1 -1
- package/src/internal/{executing/coverage_reporter → coverage}/coverage_reporter_text_log.js +3 -2
- package/src/internal/{executing/coverage_missing/relativeUrlToEmptyCoverage.js → coverage/empty_coverage_factory.js} +10 -3
- package/src/internal/{executing/coverage_utils → coverage}/file_by_file_coverage.js +0 -0
- package/src/internal/{executing/coverage_utils → coverage}/istanbul_coverage_composition.js +1 -1
- package/src/internal/{executing/coverage_reporter/istanbulCoverageMapFromCoverage.js → coverage/istanbul_coverage_map_from_coverage.js} +1 -1
- package/src/internal/{executing/coverage_missing → coverage}/list_files_not_covered.js +0 -0
- package/src/internal/{executing/coverage_missing → coverage}/missing_coverage.js +1 -1
- package/src/internal/{executing/coverage/reportToCoverage.js → coverage/report_to_coverage.js} +7 -7
- package/src/internal/{executing/coverage_utils → coverage}/v8_and_istanbul.js +0 -0
- package/src/internal/{executing/coverage_utils → coverage}/v8_coverage_composition.js +0 -0
- package/src/internal/{executing/coverage_utils → coverage}/v8_coverage_from_directory.js +0 -0
- package/src/internal/{executing/coverage_utils → coverage}/v8_coverage_to_istanbul.js +0 -0
- package/src/internal/data_url.js +54 -0
- package/src/internal/dev_server/exploring/exploring.js +1 -1
- package/src/internal/dev_server/exploring/{fetchExploringJson.js → fetch_exploring_json.js} +1 -1
- package/src/internal/dev_server/toolbar/animation/{toolbar.animation.js → toolbar_animation.js} +0 -0
- package/src/internal/dev_server/toolbar/compilation/{toolbar.compilation.js → toolbar_compilation.js} +3 -2
- package/src/internal/dev_server/toolbar/eventsource/{toolbar.eventsource.js → toolbar_eventsource.js} +0 -0
- package/src/internal/dev_server/toolbar/execution/{toolbar.execution.js → toolbar_execution.js} +1 -1
- package/src/internal/dev_server/toolbar/focus/{toolbar.focus.js → toolbar_focus.js} +0 -0
- package/src/internal/dev_server/toolbar/{jsenv-logo.svg → jsenv_logo.svg} +1 -1
- package/src/internal/dev_server/toolbar/notification/{toolbar.notification.js → toolbar_notification.js} +0 -0
- package/src/internal/dev_server/toolbar/responsive/{overflow-menu.css → overflow_menu.css} +0 -0
- package/src/internal/dev_server/toolbar/responsive/{toolbar.responsive.js → toolbar_responsive.js} +0 -0
- package/src/internal/dev_server/toolbar/settings/{toolbar.settings.js → toolbar_settings.js} +0 -0
- package/src/internal/dev_server/toolbar/theme/{jsenv-theme.css → jsenv_theme.css} +0 -0
- package/src/internal/dev_server/toolbar/theme/{light-theme.css → light_theme.css} +0 -0
- package/src/internal/dev_server/toolbar/theme/{toolbar.theme.js → toolbar_theme.js} +0 -0
- package/src/internal/dev_server/toolbar/toolbar.html +2 -2
- package/src/internal/dev_server/toolbar/{toolbar.injector.js → toolbar_injector.js} +4 -3
- package/src/internal/dev_server/toolbar/{toolbar.main.css → toolbar_main.css} +2 -2
- package/src/internal/dev_server/toolbar/{toolbar.main.js → toolbar_main.js} +9 -9
- package/src/internal/dev_server/toolbar/util/fetching.js +1 -1
- package/src/internal/dev_server/toolbar/util/{jsenvLogger.js → jsenv_logger.js} +0 -0
- package/src/internal/{error-stack-remapping/installErrorStackRemapping.js → error_stack_remap/install_error_stack_remapping.js} +6 -5
- package/src/internal/{error-stack-remapping/remapCallSite.js → error_stack_remap/remap_call_site.js} +2 -1
- package/src/internal/{error-stack-remapping/getOriginalCallsites.js → error_stack_remap/remap_stack.js} +7 -6
- package/src/internal/{error-stack-remapping/stackToString.js → error_stack_remap/stringify_stack.js} +1 -1
- package/src/internal/executing/{executePlan.js → execute_plan.js} +11 -8
- package/src/internal/executing/{generateFileExecutionSteps.js → execution_steps.js} +27 -0
- package/src/internal/executing/{launchAndExecute.js → launch_and_execute.js} +2 -2
- package/src/internal/executing/{executionLogs.js → logs_file_execution.js} +3 -2
- package/src/internal/executing/{createSummaryLog.js → logs_plan_summary.js} +3 -2
- package/src/internal/features/browser_feature_detection/browser_feature_detection.js +1 -1
- package/src/internal/features/features_compat_from_runtime.js +1 -1
- package/src/internal/features/node_feature_detection/node_feature_detection.js +1 -1
- package/src/internal/{fetchUrl.js → fetching.js} +0 -0
- package/src/internal/{import-resolution/default-extension.js → import_resolution/default_extension.js} +0 -0
- package/src/internal/{import-resolution/import-resolver-importmap.js → import_resolution/import_resolver_importmap.js} +2 -2
- package/src/internal/{import-resolution/import-resolver-node.js → import_resolution/import_resolver_node.js} +2 -2
- package/src/internal/{import-resolution → import_resolution}/importmap_default.js +1 -1
- package/src/internal/jsenv_builds.js +1 -1
- package/src/internal/{argUtils.js → jsenv_params_assertions.js} +0 -0
- package/src/internal/jsenv_remote_directory.js +1 -1
- package/src/internal/logs/{byteAsFileSize.js → byte_as_file_size.js} +1 -1
- package/src/internal/logs/{msAsDuration.js → ms_as_duration.js} +1 -1
- package/src/internal/node_launcher/{createChildProcessOptions.js → child_process_options.js} +1 -1
- package/src/internal/{node_runtime/evalSource.js → node_launcher/eval_source.js} +0 -0
- package/src/internal/{node_runtime/fetchSource.js → node_launcher/fetch_source.js} +1 -1
- package/src/internal/node_launcher/kill_process_tree.js +2 -2
- package/src/internal/{node_runtime/nodeControllableFile.mjs → node_launcher/node_controllable_file.mjs} +0 -0
- package/src/internal/node_launcher/{createControllableNodeProcess.js → node_controllable_process.js} +3 -3
- package/src/internal/{error-stack-remapping/installNodeErrorStackRemapping.js → node_launcher/node_error_stack_remap.js} +5 -3
- package/src/internal/{node_runtime → node_launcher}/node_execution_dynamic_import.js +3 -2
- package/src/internal/{node_runtime → node_launcher}/node_execution_performance.js +0 -0
- package/src/internal/{node_runtime → node_launcher}/node_execution_systemjs.js +6 -6
- package/src/internal/{node_runtime → node_launcher}/node_system.js +7 -6
- package/src/internal/{perf_node.js → node_launcher/perf_node.js} +1 -1
- package/src/internal/node_launcher/{processOptions.js → process_options.js} +0 -0
- package/src/internal/{runtime/valueInstall.js → node_launcher/value_install.js} +0 -0
- package/src/internal/{escapeRegexpSpecialCharacters.js → regexp_escape.js} +0 -0
- package/src/internal/{runtime/module-registration.js → runtime_client/module_registration.js} +0 -0
- package/src/internal/{runtime → runtime_client}/s.js +0 -0
- package/src/internal/{runtime → runtime_client}/s.js.md +0 -0
- package/src/internal/{unevalException.js → runtime_client/uneval_exception.js} +0 -0
- package/src/internal/runtime_support/runtime_support.js +1 -1
- package/src/internal/semantic_versioning/{versionCompare.js → compare_versions.js} +4 -8
- package/src/internal/semantic_versioning/{findHighestVersion.js → highest_version.js} +1 -2
- package/src/internal/semantic_versioning/is_above.js +5 -0
- package/src/internal/semantic_versioning/is_below.js +5 -0
- package/src/internal/semantic_versioning/{versionIsEqual.js → is_equal.js} +0 -0
- package/src/internal/semantic_versioning/{findLowestVersion.js → lowest_version.js} +1 -2
- package/src/internal/semantic_versioning/{valueToVersion.js → version_from_value.js} +1 -3
- package/src/internal/{sourceMappingURLUtils.js → sourcemap_utils.js} +0 -0
- package/src/internal/{escapeTemplateStringSpecialCharacters.js → template_string_escape.js} +0 -0
- package/src/internal/{filePathUtils.js → windows_file_path_utils.js} +0 -3
- package/src/jsenv_file_urls.js +35 -0
- package/src/{jsenvServiceWorkerFinalizer.js → jsenv_service_worker_finalizer.js} +1 -1
- package/src/{textToJavaScriptModule.js → json_to_js_module.js} +1 -2
- package/src/{launchNode.js → node_runtime.js} +3 -3
- package/src/{requireUsingChildProcess.js → require_using_child_process.js} +2 -2
- package/src/{jsonToJavaScriptModule.js → text_to_js_module.js} +3 -2
- package/dist/browser_runtime/asset-manifest.json +0 -4
- package/dist/browser_runtime/browser_runtime_c81cd9af.js.map +0 -1089
- package/dist/compile_proxy/compile_proxy.html__inline__20_c05fdc30.js.map +0 -343
- package/dist/redirector/redirector.html__inline__12_20421b23.js.map +0 -349
- package/dist/toolbar_injector/toolbar_injector_c8c214dd.js.map +0 -294
- package/src/internal/browser_runtime/evalSource.js +0 -11
- package/src/internal/dataUrl.utils.js +0 -55
- package/src/internal/executing/coverage_missing/createEmptyCoverage.js +0 -6
- package/src/internal/executing/executionIsPassed.js +0 -2
- package/src/internal/executing/generateExecutionSteps.js +0 -29
- package/src/internal/jsenvCoreDirectoryUrl.js +0 -11
- package/src/internal/jsenvInternalFiles.js +0 -36
- package/src/internal/semantic_versioning/index.js +0 -5
- package/src/internal/semantic_versioning/versionIsAbove.js +0 -5
- package/src/internal/semantic_versioning/versionIsBelow.js +0 -5
- package/src/jsenvCoverageConfig.js +0 -7
- package/src/jsenvExplorableConfig.js +0 -9
- package/src/jsenvRuntimeSupportDuringDev.js +0 -12
- package/src/playwright_browser_versions.js +0 -5
package/src/dev_server.js
CHANGED
|
@@ -7,20 +7,19 @@ import {
|
|
|
7
7
|
|
|
8
8
|
import { REDIRECTOR_BUILD_URL } from "@jsenv/core/dist/build_manifest.js"
|
|
9
9
|
import { setUrlSearchParamsDescriptor } from "@jsenv/core/src/internal/url_utils.js"
|
|
10
|
-
import { jsenvCoreDirectoryUrl } from "./internal/jsenvCoreDirectoryUrl.js"
|
|
11
10
|
import {
|
|
12
11
|
assertProjectDirectoryUrl,
|
|
13
12
|
assertProjectDirectoryExists,
|
|
14
|
-
} from "
|
|
13
|
+
} from "@jsenv/core/src/internal/jsenv_params_assertions.js"
|
|
15
14
|
import {
|
|
16
15
|
startCompileServer,
|
|
17
16
|
assertAndNormalizeJsenvDirectoryRelativeUrl,
|
|
18
|
-
} from "./internal/
|
|
17
|
+
} from "./internal/compile_server/compile_server.js"
|
|
19
18
|
import {
|
|
19
|
+
jsenvCoreDirectoryUrl,
|
|
20
20
|
sourcemapMainFileInfo,
|
|
21
21
|
sourcemapMappingFileInfo,
|
|
22
|
-
} from "./
|
|
23
|
-
import { jsenvExplorableConfig } from "./jsenvExplorableConfig.js"
|
|
22
|
+
} from "./jsenv_file_urls.js"
|
|
24
23
|
|
|
25
24
|
const EXPLORING_HTML_URL = new URL(
|
|
26
25
|
"./src/internal/dev_server/exploring/exploring.html",
|
|
@@ -40,7 +39,15 @@ export const startDevServer = async ({
|
|
|
40
39
|
customServices,
|
|
41
40
|
|
|
42
41
|
projectDirectoryUrl,
|
|
43
|
-
explorableConfig =
|
|
42
|
+
explorableConfig = {
|
|
43
|
+
source: {
|
|
44
|
+
"./*.html": true,
|
|
45
|
+
"./src/**/*.html": true,
|
|
46
|
+
},
|
|
47
|
+
test: {
|
|
48
|
+
"./test/**/*.html": true,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
44
51
|
mainFileRelativeUrl,
|
|
45
52
|
jsenvDirectoryRelativeUrl,
|
|
46
53
|
jsenvToolbar = true,
|
package/src/execute.js
CHANGED
|
@@ -4,9 +4,9 @@ import { normalizeRuntimeSupport } from "@jsenv/core/src/internal/runtime_suppor
|
|
|
4
4
|
import {
|
|
5
5
|
assertProjectDirectoryUrl,
|
|
6
6
|
assertProjectDirectoryExists,
|
|
7
|
-
} from "
|
|
8
|
-
import { startCompileServer } from "./internal/
|
|
9
|
-
import { launchAndExecute } from "./internal/executing/
|
|
7
|
+
} from "@jsenv/core/src/internal/jsenv_params_assertions.js"
|
|
8
|
+
import { startCompileServer } from "./internal/compile_server/compile_server.js"
|
|
9
|
+
import { launchAndExecute } from "./internal/executing/launch_and_execute.js"
|
|
10
10
|
|
|
11
11
|
export const execute = async ({
|
|
12
12
|
signal = new AbortController().signal,
|
|
@@ -11,13 +11,11 @@ import { createLogger, createDetailedMessage } from "@jsenv/logger"
|
|
|
11
11
|
import {
|
|
12
12
|
assertProjectDirectoryUrl,
|
|
13
13
|
assertProjectDirectoryExists,
|
|
14
|
-
} from "
|
|
15
|
-
import { executePlan } from "./internal/executing/
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { generateCoverageTextLog } from "./internal/executing/coverage_reporter/coverage_reporter_text_log.js"
|
|
20
|
-
import { jsenvCoverageConfig } from "./jsenvCoverageConfig.js"
|
|
14
|
+
} from "@jsenv/core/src/internal/jsenv_params_assertions.js"
|
|
15
|
+
import { executePlan } from "./internal/executing/execute_plan.js"
|
|
16
|
+
import { generateCoverageJsonFile } from "./internal/coverage/coverage_reporter_json_file.js"
|
|
17
|
+
import { generateCoverageHtmlDirectory } from "./internal/coverage/coverage_reporter_html_directory.js"
|
|
18
|
+
import { generateCoverageTextLog } from "./internal/coverage/coverage_reporter_text_log.js"
|
|
21
19
|
|
|
22
20
|
/**
|
|
23
21
|
* Execute a list of files and log how it goes
|
|
@@ -72,7 +70,13 @@ export const executeTestPlan = async ({
|
|
|
72
70
|
coverage = process.argv.includes("--cover") ||
|
|
73
71
|
process.argv.includes("--coverage"),
|
|
74
72
|
coverageTempDirectoryRelativeUrl = "./coverage/tmp/",
|
|
75
|
-
coverageConfig =
|
|
73
|
+
coverageConfig = {
|
|
74
|
+
"./index.js": true,
|
|
75
|
+
"./main.js": true,
|
|
76
|
+
"./src/**/*.js": true,
|
|
77
|
+
"./**/*.test.*": false, // contains .test. -> nope
|
|
78
|
+
"./**/test/": false, // inside a test folder -> nope,
|
|
79
|
+
},
|
|
76
80
|
coverageIncludeMissing = true,
|
|
77
81
|
coverageAndExecutionAllowed = false,
|
|
78
82
|
coverageForceIstanbul = false,
|
|
@@ -206,7 +210,10 @@ export const executeTestPlan = async ({
|
|
|
206
210
|
importMapInWebWorkers,
|
|
207
211
|
customCompilers,
|
|
208
212
|
})
|
|
209
|
-
if (
|
|
213
|
+
if (
|
|
214
|
+
updateProcessExitCode &&
|
|
215
|
+
result.planSummary.executionCount !== result.planSummary.completedCount
|
|
216
|
+
) {
|
|
210
217
|
process.exitCode = 1
|
|
211
218
|
}
|
|
212
219
|
const planCoverage = result.planCoverage
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { launchAndExecute } from "./internal/executing/
|
|
2
|
-
import { createControllableNodeProcess } from "./internal/node_launcher/
|
|
1
|
+
import { launchAndExecute } from "./internal/executing/launch_and_execute.js"
|
|
2
|
+
import { createControllableNodeProcess } from "./internal/node_launcher/node_controllable_process.js"
|
|
3
3
|
|
|
4
4
|
export const importUsingChildProcess = async (
|
|
5
5
|
fileUrl,
|
package/src/internal/{browser_runtime/browser_runtime.js → browser_client/browser_client.js}
RENAMED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { fetchUrl } from "@jsenv/core/src/internal/browser_utils/fetch_browser.js"
|
|
2
|
+
import { fetchAndEval } from "@jsenv/core/src/internal/browser_utils/fetch_and_eval.js"
|
|
3
|
+
import { unevalException } from "@jsenv/core/src/internal/runtime_client/uneval_exception.js"
|
|
4
|
+
import { memoize } from "@jsenv/core/src/internal/memoize.js"
|
|
2
5
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { memoize } from "../memoize.js"
|
|
8
|
-
|
|
9
|
-
import { displayErrorInDocument } from "./displayErrorInDocument.js"
|
|
10
|
-
import { displayErrorNotification } from "./displayErrorNotification.js"
|
|
11
|
-
import { createBrowserRuntime } from "./createBrowserRuntime.js"
|
|
6
|
+
import { createBrowserClient } from "./browser_client_factory.js"
|
|
7
|
+
import { installBrowserErrorStackRemapping } from "./browser_error_stack_remap.js"
|
|
8
|
+
import { displayErrorInDocument } from "./error_in_document.js"
|
|
9
|
+
import { displayErrorNotification } from "./error_in_notification.js"
|
|
12
10
|
|
|
13
11
|
const getNavigationStartTime = () => {
|
|
14
12
|
try {
|
|
@@ -177,7 +175,7 @@ const getBrowserRuntime = memoize(async () => {
|
|
|
177
175
|
const parts = afterJsenvDirectory.split("/")
|
|
178
176
|
const compileId = parts[0]
|
|
179
177
|
|
|
180
|
-
const
|
|
178
|
+
const browserClient = await createBrowserClient({
|
|
181
179
|
compileServerOrigin,
|
|
182
180
|
jsenvDirectoryRelativeUrl,
|
|
183
181
|
compileId,
|
|
@@ -186,9 +184,7 @@ const getBrowserRuntime = memoize(async () => {
|
|
|
186
184
|
if (errorStackRemapping && Error.captureStackTrace) {
|
|
187
185
|
const { sourcemapMainFileRelativeUrl, sourcemapMappingFileRelativeUrl } =
|
|
188
186
|
compileServerMeta
|
|
189
|
-
await
|
|
190
|
-
`${compileServerOrigin}/${sourcemapMainFileRelativeUrl}`,
|
|
191
|
-
)
|
|
187
|
+
await fetchAndEval(`${compileServerOrigin}/${sourcemapMainFileRelativeUrl}`)
|
|
192
188
|
const { SourceMapConsumer } = window.sourceMap
|
|
193
189
|
SourceMapConsumer.initialize({
|
|
194
190
|
"lib/mappings.wasm": `${compileServerOrigin}/${sourcemapMappingFileRelativeUrl}`,
|
|
@@ -204,12 +200,12 @@ const getBrowserRuntime = memoize(async () => {
|
|
|
204
200
|
error.stack = originalStack
|
|
205
201
|
return error
|
|
206
202
|
}
|
|
207
|
-
const executeFile =
|
|
208
|
-
|
|
203
|
+
const executeFile = browserClient.executeFile
|
|
204
|
+
browserClient.executeFile = (file, options = {}) => {
|
|
209
205
|
return executeFile(file, { errorTransform, ...options })
|
|
210
206
|
}
|
|
211
207
|
}
|
|
212
|
-
return
|
|
208
|
+
return browserClient
|
|
213
209
|
})
|
|
214
210
|
|
|
215
211
|
const livereloadingCallbacks = {}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
/* eslint-env browser */
|
|
2
|
-
|
|
3
1
|
import { normalizeImportMap } from "@jsenv/importmap/src/normalizeImportMap.js"
|
|
4
2
|
|
|
5
3
|
// do not use memoize from @jsenv/filesystem to avoid pulling @jsenv/filesystem code into the browser build
|
|
6
|
-
import { fetchUrl } from "
|
|
7
|
-
import { createImportResolverForImportmap } from "
|
|
8
|
-
import { memoize } from "
|
|
9
|
-
import { measureAsyncFnPerf } from "../perf_browser.js"
|
|
4
|
+
import { fetchUrl } from "@jsenv/core/src/internal/browser_utils/fetch_browser.js"
|
|
5
|
+
import { createImportResolverForImportmap } from "@jsenv/core/src/internal/import_resolution/import_resolver_importmap.js"
|
|
6
|
+
import { memoize } from "@jsenv/core/src/internal/memoize.js"
|
|
10
7
|
|
|
11
8
|
import { createBrowserSystem } from "./browser_system.js"
|
|
12
|
-
import {
|
|
9
|
+
import { measureAsyncFnPerf } from "./perf_browser.js"
|
|
10
|
+
import { makeModuleNamespaceTransferable } from "./module_namespace_transfer.js"
|
|
13
11
|
|
|
14
12
|
const memoizedCreateBrowserSystem = memoize(createBrowserSystem)
|
|
15
13
|
|
|
16
|
-
export const
|
|
14
|
+
export const createBrowserClient = async ({
|
|
17
15
|
compileServerOrigin,
|
|
18
16
|
jsenvDirectoryRelativeUrl,
|
|
19
17
|
compileId,
|
|
@@ -103,7 +101,7 @@ export const createBrowserRuntime = async ({
|
|
|
103
101
|
let namespace = await browserSystem.import(specifier)
|
|
104
102
|
|
|
105
103
|
if (transferableNamespace) {
|
|
106
|
-
namespace =
|
|
104
|
+
namespace = makeModuleNamespaceTransferable(namespace)
|
|
107
105
|
}
|
|
108
106
|
|
|
109
107
|
return {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { installErrorStackRemapping } from "./installErrorStackRemapping.js"
|
|
1
|
+
import { installErrorStackRemapping } from "@jsenv/core/src/internal/error_stack_remap/install_error_stack_remapping.js"
|
|
4
2
|
|
|
5
3
|
export const installBrowserErrorStackRemapping = (options = {}) =>
|
|
6
4
|
installErrorStackRemapping({
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { getJavaScriptModuleResponseError } from "../runtime/module-registration.js"
|
|
4
|
-
import "../runtime/s.js"
|
|
1
|
+
import { getJavaScriptModuleResponseError } from "@jsenv/core/src/internal/runtime_client/module_registration.js"
|
|
2
|
+
import "@jsenv/core/src/internal/runtime_client/s.js"
|
|
5
3
|
|
|
6
4
|
export const createBrowserSystem = ({
|
|
7
5
|
compileServerOrigin,
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
// https://github.com/lancedikson/bowser/blob/master/src/parser-browsers.js#L1
|
|
3
3
|
|
|
4
4
|
import { detectFromUserAgentData } from "./user_agent_data.js"
|
|
5
|
-
import { detectAndroid } from "./
|
|
6
|
-
import { detectInternetExplorer } from "./
|
|
7
|
-
import { detectOpera } from "./
|
|
8
|
-
import { detectEdge } from "./
|
|
9
|
-
import { detectFirefox } from "./
|
|
10
|
-
import { detectChrome } from "./
|
|
11
|
-
import { detectSafari } from "./
|
|
12
|
-
import { detectElectron } from "./
|
|
13
|
-
import { detectIOS } from "./
|
|
5
|
+
import { detectAndroid } from "./detect_android.js"
|
|
6
|
+
import { detectInternetExplorer } from "./detect_internet_explorer.js"
|
|
7
|
+
import { detectOpera } from "./detect_opera.js"
|
|
8
|
+
import { detectEdge } from "./detect_edge.js"
|
|
9
|
+
import { detectFirefox } from "./detect_firefox.js"
|
|
10
|
+
import { detectChrome } from "./detect_chrome.js"
|
|
11
|
+
import { detectSafari } from "./detect_safari.js"
|
|
12
|
+
import { detectElectron } from "./detect_electron.js"
|
|
13
|
+
import { detectIOS } from "./detect_ios.js"
|
|
14
14
|
|
|
15
15
|
const detectorCompose = (detectors) => () => {
|
|
16
16
|
let i = 0
|
|
@@ -40,7 +40,6 @@ const detector = detectorCompose([
|
|
|
40
40
|
|
|
41
41
|
export const detectBrowser = () => {
|
|
42
42
|
const { name = "other", version = "unknown" } = detector() || {}
|
|
43
|
-
|
|
44
43
|
return {
|
|
45
44
|
name: normalizeName(name),
|
|
46
45
|
version: normalizeVersion(version),
|
|
@@ -57,12 +56,10 @@ const normalizeVersion = (version) => {
|
|
|
57
56
|
// remove extraneous .
|
|
58
57
|
return parts.slice(0, 3).join(".")
|
|
59
58
|
}
|
|
60
|
-
|
|
61
59
|
if (version.indexOf("_") > -1) {
|
|
62
60
|
const parts = version.split("_")
|
|
63
61
|
// remove extraneous _
|
|
64
62
|
return parts.slice(0, 3).join("_")
|
|
65
63
|
}
|
|
66
|
-
|
|
67
64
|
return version
|
|
68
65
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/internal/browser_detection/{detectInternetExplorer.js → detect_internet_explorer.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,10 +6,11 @@ import {
|
|
|
6
6
|
} from "@jsenv/filesystem"
|
|
7
7
|
|
|
8
8
|
import { COMPILE_PROXY_BUILD_URL } from "@jsenv/core/dist/build_manifest.js"
|
|
9
|
-
import { filterV8Coverage } from "@jsenv/core/src/internal/
|
|
10
|
-
import { composeTwoFileByFileIstanbulCoverages } from "@jsenv/core/src/internal/
|
|
11
|
-
import { evalSource } from "
|
|
12
|
-
import { escapeRegexpSpecialCharacters } from "
|
|
9
|
+
import { filterV8Coverage } from "@jsenv/core/src/internal/coverage/v8_coverage_from_directory.js"
|
|
10
|
+
import { composeTwoFileByFileIstanbulCoverages } from "@jsenv/core/src/internal/coverage/istanbul_coverage_composition.js"
|
|
11
|
+
import { evalSource } from "@jsenv/core/src/internal/node_launcher/eval_source.js"
|
|
12
|
+
import { escapeRegexpSpecialCharacters } from "@jsenv/core/src/internal/regexp_escape.js"
|
|
13
|
+
|
|
13
14
|
import { getBrowserRuntimeProfile } from "./browser_runtime_profile.js"
|
|
14
15
|
|
|
15
16
|
export const executeHtmlFile = async (
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
} from "@jsenv/abort"
|
|
10
10
|
import { memoize } from "@jsenv/filesystem"
|
|
11
11
|
|
|
12
|
-
import {
|
|
13
|
-
import { executeHtmlFile } from "./
|
|
12
|
+
import { trackPageErrorsAndLogs } from "./page_errors_and_logs.js"
|
|
13
|
+
import { executeHtmlFile } from "./execute_html_file.js"
|
|
14
14
|
|
|
15
15
|
export const createRuntimeFromPlaywright = ({
|
|
16
16
|
browserName,
|
|
@@ -113,7 +113,7 @@ export const createRuntimeFromPlaywright = ({
|
|
|
113
113
|
throw e
|
|
114
114
|
}
|
|
115
115
|
})
|
|
116
|
-
const stopTrackingToNotify =
|
|
116
|
+
const stopTrackingToNotify = trackPageErrorsAndLogs(page, {
|
|
117
117
|
onError: (error) => {
|
|
118
118
|
error = transformErrorHook(error)
|
|
119
119
|
if (!ignoreErrorHook(error)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const trackPageErrorsAndLogs = (page, { onError, onConsole }) => {
|
|
2
2
|
// https://github.com/GoogleChrome/puppeteer/blob/v1.4.0/docs/api.md#event-error
|
|
3
3
|
const removeErrorListener = registerEvent({
|
|
4
4
|
object: page,
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
/* eslint-env browser */
|
|
2
|
-
|
|
3
1
|
import { createDetailedMessage } from "@jsenv/logger"
|
|
4
2
|
|
|
5
3
|
import { fetchUrl } from "./fetch_browser.js"
|
|
6
4
|
|
|
7
|
-
export const
|
|
5
|
+
export const fetchAndEval = async (url) => {
|
|
8
6
|
const response = await fetchUrl(url)
|
|
9
7
|
|
|
10
8
|
if (response.status >= 200 && response.status <= 299) {
|
|
File without changes
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ANSI, UNICODE } from "@jsenv/log"
|
|
2
2
|
|
|
3
|
-
import { getHtmlNodeLocation } from "@jsenv/core/src/internal/
|
|
4
|
-
|
|
5
|
-
import {
|
|
3
|
+
import { getHtmlNodeLocation } from "@jsenv/core/src/internal/compile_server/html/html_ast.js"
|
|
4
|
+
|
|
5
|
+
import { byteAsFileSize } from "../logs/byte_as_file_size.js"
|
|
6
|
+
import { msAsDuration } from "../logs/ms_as_duration.js"
|
|
6
7
|
import { stringifyUrlSite } from "./url_trace.js"
|
|
7
8
|
|
|
8
9
|
export const formatBuildStartLog = ({ entryPoints }) => {
|
|
@@ -352,7 +352,7 @@ const getConvertSuggestion = async ({
|
|
|
352
352
|
return {
|
|
353
353
|
suggestion: `The file seems written in commonjs, you should use "customCompiler" to convert it to js module
|
|
354
354
|
{
|
|
355
|
-
"./${importedFileOriginalRelativeUrl}":
|
|
355
|
+
"./${importedFileOriginalRelativeUrl}": commonJsToJsModule
|
|
356
356
|
}
|
|
357
357
|
As documented in https://github.com/jsenv/jsenv-core/blob/master/docs/shared-parameters.md#customcompilers`,
|
|
358
358
|
}
|
|
File without changes
|
|
@@ -9,11 +9,12 @@ import {
|
|
|
9
9
|
generateSourcemapUrl,
|
|
10
10
|
getCssSourceMappingUrl,
|
|
11
11
|
setCssSourceMappingUrl,
|
|
12
|
-
} from "@jsenv/core/src/internal/
|
|
12
|
+
} from "@jsenv/core/src/internal/sourcemap_utils.js"
|
|
13
|
+
|
|
13
14
|
import { getRessourceAsBase64Url } from "../ressource_builder_util.js"
|
|
14
|
-
import { parseCssUrls } from "./
|
|
15
|
-
import { replaceCssUrls } from "./
|
|
16
|
-
import { moveCssUrls } from "./
|
|
15
|
+
import { parseCssUrls } from "./parse_css_urls.js"
|
|
16
|
+
import { replaceCssUrls } from "./replace_css_urls.js"
|
|
17
|
+
import { moveCssUrls } from "./move_css_urls.js"
|
|
17
18
|
|
|
18
19
|
export const parseCssRessource = async (
|
|
19
20
|
cssRessource,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { urlToRelativeUrl } from "@jsenv/filesystem"
|
|
2
2
|
|
|
3
|
-
import { applyPostCss } from "./
|
|
3
|
+
import { applyPostCss } from "./apply_post_css.js"
|
|
4
4
|
import { postCssPluginUrlVisitor } from "./postcss_plugin_url_visitor.js"
|
|
5
5
|
|
|
6
6
|
export const moveCssUrls = async ({
|
|
@@ -12,6 +12,7 @@ hence sourcemap cannot point the original source location
|
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { fileSystemPathToUrl, resolveUrl } from "@jsenv/filesystem"
|
|
15
|
+
|
|
15
16
|
import { require } from "@jsenv/core/src/internal/require.js"
|
|
16
17
|
|
|
17
18
|
export const postCssPluginUrlVisitor = ({ urlVisitor = () => null }) => {
|
|
@@ -4,7 +4,8 @@ import {
|
|
|
4
4
|
} from "@jsenv/filesystem"
|
|
5
5
|
|
|
6
6
|
import { require } from "@jsenv/core/src/internal/require.js"
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
import { applyPostCss } from "./apply_post_css.js"
|
|
8
9
|
import { postCssPluginUrlVisitor } from "./postcss_plugin_url_visitor.js"
|
|
9
10
|
|
|
10
11
|
export const replaceCssUrls = async ({
|
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
visitHtmlAst,
|
|
4
4
|
getHtmlNodeAttributeByName,
|
|
5
5
|
getHtmlNodeTextNode,
|
|
6
|
-
} from "@jsenv/core/src/internal/
|
|
6
|
+
} from "@jsenv/core/src/internal/compile_server/html/html_ast.js"
|
|
7
7
|
|
|
8
8
|
export const importMapsFromHtml = (htmlSource) => {
|
|
9
9
|
const importmaps = []
|
|
@@ -19,7 +19,6 @@ Or be sure to also reference this url somewhere in the html file like
|
|
|
19
19
|
import { urlToFilename, urlToRelativeUrl, resolveUrl } from "@jsenv/filesystem"
|
|
20
20
|
import { applyAlgoToRepresentationData } from "@jsenv/integrity"
|
|
21
21
|
|
|
22
|
-
|
|
23
22
|
import {
|
|
24
23
|
parseHtmlString,
|
|
25
24
|
parseHtmlAstRessources,
|
|
@@ -35,21 +34,21 @@ import {
|
|
|
35
34
|
getHtmlNodeLocation,
|
|
36
35
|
removeHtmlNode,
|
|
37
36
|
addHtmlNodeAttribute,
|
|
38
|
-
} from "@jsenv/core/src/internal/
|
|
37
|
+
} from "@jsenv/core/src/internal/compile_server/html/html_ast.js"
|
|
39
38
|
import {
|
|
40
39
|
getJavaScriptSourceMappingUrl,
|
|
41
40
|
setJavaScriptSourceMappingUrl,
|
|
42
41
|
getCssSourceMappingUrl,
|
|
43
42
|
setCssSourceMappingUrl,
|
|
44
|
-
} from "@jsenv/core/src/internal/
|
|
43
|
+
} from "@jsenv/core/src/internal/sourcemap_utils.js"
|
|
45
44
|
import {
|
|
46
45
|
getRessourceAsBase64Url,
|
|
47
46
|
isReferencedOnlyByRessourceHint,
|
|
48
47
|
} from "../ressource_builder_util.js"
|
|
49
|
-
import { collectNodesMutations } from "
|
|
48
|
+
import { collectNodesMutations } from "./html_node_mutations.js"
|
|
50
49
|
|
|
51
|
-
import { collectSvgMutations } from "../svg/
|
|
52
|
-
import { moveCssUrls } from "../css/
|
|
50
|
+
import { collectSvgMutations } from "../svg/jsenv_parse_svg.js"
|
|
51
|
+
import { moveCssUrls } from "../css/move_css_urls.js"
|
|
53
52
|
|
|
54
53
|
export const parseHtmlRessource = async (
|
|
55
54
|
htmlRessource,
|
|
File without changes
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { resolveUrl, urlToRelativeUrl } from "@jsenv/filesystem"
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { escapeTemplateStringSpecialCharacters } from "@jsenv/core/src/internal/escapeTemplateStringSpecialCharacters.js"
|
|
3
|
+
import { escapeTemplateStringSpecialCharacters } from "@jsenv/core/src/internal/template_string_escape.js"
|
|
5
4
|
import {
|
|
6
5
|
getCssSourceMappingUrl,
|
|
7
6
|
setCssSourceMappingUrl,
|
|
8
|
-
} from "@jsenv/core/src/internal/
|
|
7
|
+
} from "@jsenv/core/src/internal/sourcemap_utils.js"
|
|
8
|
+
import { moveCssUrls } from "@jsenv/core/src/internal/building/css/move_css_urls.js"
|
|
9
9
|
|
|
10
10
|
export const convertCssTextToJavascriptModule = async ({
|
|
11
11
|
cssUrl,
|
|
File without changes
|
package/src/internal/building/importmap/{parseImportmapRessource.js → jsenv_parse_importmap.js}
RENAMED
|
File without changes
|
|
@@ -4,7 +4,8 @@ import {
|
|
|
4
4
|
generateSourcemapUrl,
|
|
5
5
|
getJavaScriptSourceMappingUrl,
|
|
6
6
|
setJavaScriptSourceMappingUrl,
|
|
7
|
-
} from "@jsenv/core/src/internal/
|
|
7
|
+
} from "@jsenv/core/src/internal/sourcemap_utils.js"
|
|
8
|
+
|
|
8
9
|
import { transformWorker } from "./transform_worker.js"
|
|
9
10
|
|
|
10
11
|
export const parseJsRessource = async (
|
|
File without changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// var blob = new Blob(code, { type: 'text/javascript' })
|
|
3
3
|
// window.URL.createObjectURL(blob)
|
|
4
4
|
|
|
5
|
-
import { readFileSync } from "fs"
|
|
5
|
+
import { readFileSync } from "node:fs"
|
|
6
6
|
import { urlToFileSystemPath } from "@jsenv/filesystem"
|
|
7
7
|
import { createDetailedMessage } from "@jsenv/logger"
|
|
8
8
|
|
|
File without changes
|