@immense/vue-pom-generator 1.0.101 → 1.0.102

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/index.mjs CHANGED
@@ -10956,7 +10956,9 @@ function createAnnotatorUiPlugin(options) {
10956
10956
  });
10957
10957
  return {
10958
10958
  name: "vue-pom-generator:annotator-ui",
10959
- apply: "serve",
10959
+ apply(config, { command }) {
10960
+ return command === "serve" || !config.build?.ssr;
10961
+ },
10960
10962
  resolveId(id) {
10961
10963
  if (id === ANNOTATOR_CLIENT_VIRTUAL_ID) {
10962
10964
  return ANNOTATOR_CLIENT_RESOLVED_ID;
@@ -10972,8 +10974,8 @@ function createAnnotatorUiPlugin(options) {
10972
10974
  ""
10973
10975
  ].join("\n");
10974
10976
  },
10975
- transform(code, id) {
10976
- if (!options.enabled) {
10977
+ transform(code, id, transformOptions) {
10978
+ if (!options.enabled || transformOptions?.ssr) {
10977
10979
  return null;
10978
10980
  }
10979
10981
  const normalizedId = normalizePathSeparators(id);