svelte2tsx 0.5.18 → 0.5.19
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/index.js +4 -2
- package/index.mjs +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1144,7 +1144,7 @@ function extractTag(htmlx, tag, useNewTransformation) {
|
|
|
1144
1144
|
let content = match[4];
|
|
1145
1145
|
if (!content) {
|
|
1146
1146
|
if (useNewTransformation) {
|
|
1147
|
-
// Keep tag and transform it
|
|
1147
|
+
// Keep tag and transform it like a regular element
|
|
1148
1148
|
content = '';
|
|
1149
1149
|
}
|
|
1150
1150
|
else {
|
|
@@ -7111,7 +7111,9 @@ function processSvelteTemplate(str, options) {
|
|
|
7111
7111
|
}
|
|
7112
7112
|
// resolve scripts
|
|
7113
7113
|
const { scriptTag, moduleScriptTag } = scripts.getTopLevelScriptTags();
|
|
7114
|
-
|
|
7114
|
+
if (options.mode !== 'ts') {
|
|
7115
|
+
scripts.blankOtherScriptTags(str);
|
|
7116
|
+
}
|
|
7115
7117
|
//resolve stores
|
|
7116
7118
|
const resolvedStores = stores.getStoreNames();
|
|
7117
7119
|
return {
|
package/index.mjs
CHANGED
|
@@ -1114,7 +1114,7 @@ function extractTag(htmlx, tag, useNewTransformation) {
|
|
|
1114
1114
|
let content = match[4];
|
|
1115
1115
|
if (!content) {
|
|
1116
1116
|
if (useNewTransformation) {
|
|
1117
|
-
// Keep tag and transform it
|
|
1117
|
+
// Keep tag and transform it like a regular element
|
|
1118
1118
|
content = '';
|
|
1119
1119
|
}
|
|
1120
1120
|
else {
|
|
@@ -7081,7 +7081,9 @@ function processSvelteTemplate(str, options) {
|
|
|
7081
7081
|
}
|
|
7082
7082
|
// resolve scripts
|
|
7083
7083
|
const { scriptTag, moduleScriptTag } = scripts.getTopLevelScriptTags();
|
|
7084
|
-
|
|
7084
|
+
if (options.mode !== 'ts') {
|
|
7085
|
+
scripts.blankOtherScriptTags(str);
|
|
7086
|
+
}
|
|
7085
7087
|
//resolve stores
|
|
7086
7088
|
const resolvedStores = stores.getStoreNames();
|
|
7087
7089
|
return {
|