@jsenv/core 27.0.0-alpha.87 → 27.0.0-alpha.88

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/main.js CHANGED
@@ -9899,7 +9899,7 @@ const jsenvPluginImportmap = () => {
9899
9899
  return null;
9900
9900
  }
9901
9901
 
9902
- const handleInlineImportmap = async (importmap, textNode) => {
9902
+ const handleInlineImportmap = async (importmap, htmlNodeText) => {
9903
9903
  const {
9904
9904
  line,
9905
9905
  column,
@@ -9924,7 +9924,7 @@ const jsenvPluginImportmap = () => {
9924
9924
  specifierColumn: column,
9925
9925
  specifier: inlineImportmapUrl,
9926
9926
  contentType: "application/importmap+json",
9927
- content: textNode.value
9927
+ content: htmlNodeText
9928
9928
  });
9929
9929
  await context.cook(inlineImportmapUrlInfo, {
9930
9930
  reference: inlineImportmapReference
@@ -16724,8 +16724,9 @@ const getCorePlugins = ({
16724
16724
  rootDirectoryUrl,
16725
16725
  ...urlAnalysis
16726
16726
  }), jsenvPluginTranspilation(transpilation), ...(htmlSupervisor ? [jsenvPluginHtmlSupervisor(htmlSupervisor)] : []), // before inline as it turns inline <script> into <script src>
16727
+ jsenvPluginImportmap(), // before node esm to handle bare specifiers
16728
+ // + before node esm to handle importmap before inline content
16727
16729
  jsenvPluginInline(), // before "file urls" to resolve and load inline urls
16728
- jsenvPluginImportmap(), // before node esm to handle bare specifiers before node esm
16729
16730
  jsenvPluginFileUrls({
16730
16731
  directoryReferenceAllowed,
16731
16732
  ...fileSystemMagicResolution
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "27.0.0-alpha.87",
3
+ "version": "27.0.0-alpha.88",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -117,4 +117,4 @@
117
117
  "prettier": "2.7.1",
118
118
  "redux": "4.1.2"
119
119
  }
120
- }
120
+ }
@@ -106,7 +106,7 @@ export const jsenvPluginImportmap = () => {
106
106
  onHtmlImportmapParsed(null, htmlUrlInfo.url)
107
107
  return null
108
108
  }
109
- const handleInlineImportmap = async (importmap, textNode) => {
109
+ const handleInlineImportmap = async (importmap, htmlNodeText) => {
110
110
  const { line, column, lineEnd, columnEnd, isOriginal } =
111
111
  getHtmlNodePosition(importmap, {
112
112
  preferOriginal: true,
@@ -127,7 +127,7 @@ export const jsenvPluginImportmap = () => {
127
127
  specifierColumn: column,
128
128
  specifier: inlineImportmapUrl,
129
129
  contentType: "application/importmap+json",
130
- content: textNode.value,
130
+ content: htmlNodeText,
131
131
  })
132
132
  await context.cook(inlineImportmapUrlInfo, {
133
133
  reference: inlineImportmapReference,
@@ -49,8 +49,10 @@ export const getCorePlugins = ({
49
49
  jsenvPluginUrlAnalysis({ rootDirectoryUrl, ...urlAnalysis }),
50
50
  jsenvPluginTranspilation(transpilation),
51
51
  ...(htmlSupervisor ? [jsenvPluginHtmlSupervisor(htmlSupervisor)] : []), // before inline as it turns inline <script> into <script src>
52
+ jsenvPluginImportmap(),
53
+ // before node esm to handle bare specifiers
54
+ // + before node esm to handle importmap before inline content
52
55
  jsenvPluginInline(), // before "file urls" to resolve and load inline urls
53
- jsenvPluginImportmap(), // before node esm to handle bare specifiers before node esm
54
56
  jsenvPluginFileUrls({
55
57
  directoryReferenceAllowed,
56
58
  ...fileSystemMagicResolution,