@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.
- package/dist/build/build.js +5 -1
- package/dist/client/import_meta_css/import_meta_css_dev.js +1 -0
- package/dist/start_dev_server/start_dev_server.js +5 -1
- package/package.json +1 -1
- package/src/plugins/import_meta_css/client/import_meta_css_dev.js +1 -0
- package/src/plugins/import_meta_css/jsenv_plugin_import_meta_css.js +5 -1
package/dist/build/build.js
CHANGED
|
@@ -7916,7 +7916,11 @@ const jsenvPluginImportMetaCss = () => {
|
|
|
7916
7916
|
appliesDuring: "*",
|
|
7917
7917
|
transformUrlContent: {
|
|
7918
7918
|
js_module: async (urlInfo) => {
|
|
7919
|
-
if (
|
|
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({
|
|
@@ -7957,7 +7957,11 @@ const jsenvPluginImportMetaCss = () => {
|
|
|
7957
7957
|
appliesDuring: "*",
|
|
7958
7958
|
transformUrlContent: {
|
|
7959
7959
|
js_module: async (urlInfo) => {
|
|
7960
|
-
if (
|
|
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
|
@@ -36,7 +36,11 @@ export const jsenvPluginImportMetaCss = () => {
|
|
|
36
36
|
appliesDuring: "*",
|
|
37
37
|
transformUrlContent: {
|
|
38
38
|
js_module: async (urlInfo) => {
|
|
39
|
-
if (
|
|
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({
|