@jsenv/core 40.12.11 → 40.12.12

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.
@@ -7916,7 +7916,11 @@ const jsenvPluginImportMetaCss = () => {
7916
7916
  appliesDuring: "*",
7917
7917
  transformUrlContent: {
7918
7918
  js_module: async (urlInfo) => {
7919
- if (!urlInfo.content.includes("import.meta.css")) {
7919
+ if (
7920
+ !urlInfo.content.includes("import.meta.css") ||
7921
+ // there is already our installImportMetaCssBuild in the file
7922
+ urlInfo.content.includes("installImportMetaCssBuild")
7923
+ ) {
7920
7924
  return null;
7921
7925
  }
7922
7926
  const { metadata } = await applyBabelPlugins({
@@ -32,6 +32,7 @@ const installImportMetaCssDev = (importMeta) => {
32
32
  };
33
33
 
34
34
  Object.defineProperty(importMeta, "css", {
35
+ configurable: true,
35
36
  get() {
36
37
  return css;
37
38
  },
@@ -7957,7 +7957,11 @@ const jsenvPluginImportMetaCss = () => {
7957
7957
  appliesDuring: "*",
7958
7958
  transformUrlContent: {
7959
7959
  js_module: async (urlInfo) => {
7960
- if (!urlInfo.content.includes("import.meta.css")) {
7960
+ if (
7961
+ !urlInfo.content.includes("import.meta.css") ||
7962
+ // there is already our installImportMetaCssBuild in the file
7963
+ urlInfo.content.includes("installImportMetaCssBuild")
7964
+ ) {
7961
7965
  return null;
7962
7966
  }
7963
7967
  const { metadata } = await applyBabelPlugins({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "40.12.11",
3
+ "version": "40.12.12",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,6 +32,7 @@ export const installImportMetaCssDev = (importMeta) => {
32
32
  };
33
33
 
34
34
  Object.defineProperty(importMeta, "css", {
35
+ configurable: true,
35
36
  get() {
36
37
  return css;
37
38
  },
@@ -36,7 +36,11 @@ export const jsenvPluginImportMetaCss = () => {
36
36
  appliesDuring: "*",
37
37
  transformUrlContent: {
38
38
  js_module: async (urlInfo) => {
39
- if (!urlInfo.content.includes("import.meta.css")) {
39
+ if (
40
+ !urlInfo.content.includes("import.meta.css") ||
41
+ // there is already our installImportMetaCssBuild in the file
42
+ urlInfo.content.includes("installImportMetaCssBuild")
43
+ ) {
40
44
  return null;
41
45
  }
42
46
  const { metadata } = await applyBabelPlugins({