@module-federation/vite 1.9.5 → 1.9.7
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/lib/index.cjs +44 -17
- package/lib/index.esm.js +44 -17
- package/lib/index.modern.js +44 -17
- package/lib/index.umd.js +44 -17
- package/lib/plugins/__tests__/pluginDts.test.d.ts +1 -0
- package/package.json +19 -17
package/lib/index.cjs
CHANGED
|
@@ -1659,9 +1659,13 @@ var normalizeDevDtsOptions = function normalizeDevDtsOptions(dts, context) {
|
|
|
1659
1659
|
}, 'mfOptions.dts')(dts);
|
|
1660
1660
|
};
|
|
1661
1661
|
var logDtsError = function logDtsError(error, dtsOptions) {
|
|
1662
|
-
if (dtsOptions
|
|
1663
|
-
|
|
1662
|
+
if (dtsOptions === false) {
|
|
1663
|
+
return;
|
|
1664
1664
|
}
|
|
1665
|
+
if (typeof dtsOptions === 'object' && dtsOptions && dtsOptions.displayErrorInTerminal === false) {
|
|
1666
|
+
return;
|
|
1667
|
+
}
|
|
1668
|
+
console.error(error);
|
|
1665
1669
|
};
|
|
1666
1670
|
function pluginDts(options) {
|
|
1667
1671
|
if (options.dts === false) {
|
|
@@ -1671,6 +1675,7 @@ function pluginDts(options) {
|
|
|
1671
1675
|
var resolvedConfig;
|
|
1672
1676
|
var devWorker;
|
|
1673
1677
|
var normalizedDevOptions;
|
|
1678
|
+
var hasGeneratedBundle = false;
|
|
1674
1679
|
var devPlugin = {
|
|
1675
1680
|
name: 'module-federation-dts-dev',
|
|
1676
1681
|
apply: 'serve',
|
|
@@ -1796,15 +1801,21 @@ function pluginDts(options) {
|
|
|
1796
1801
|
configResolved: function configResolved(config) {
|
|
1797
1802
|
resolvedConfig = config;
|
|
1798
1803
|
},
|
|
1799
|
-
|
|
1804
|
+
generateBundle: function generateBundle() {
|
|
1800
1805
|
try {
|
|
1801
1806
|
var _temp6 = function _temp6() {
|
|
1802
|
-
var generateOptions
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1807
|
+
var generateOptions;
|
|
1808
|
+
try {
|
|
1809
|
+
generateOptions = dtsPlugin.normalizeGenerateTypesOptions({
|
|
1810
|
+
context: context,
|
|
1811
|
+
outputDir: outputDir,
|
|
1812
|
+
dtsOptions: normalizedDtsOptions,
|
|
1813
|
+
pluginOptions: dtsModuleFederationConfig
|
|
1814
|
+
});
|
|
1815
|
+
} catch (error) {
|
|
1816
|
+
logDtsError(error, normalizedDtsOptions);
|
|
1817
|
+
return;
|
|
1818
|
+
}
|
|
1808
1819
|
if (!generateOptions) {
|
|
1809
1820
|
return;
|
|
1810
1821
|
}
|
|
@@ -1817,22 +1828,38 @@ function pluginDts(options) {
|
|
|
1817
1828
|
});
|
|
1818
1829
|
if (_temp4 && _temp4.then) return _temp4.then(function () {});
|
|
1819
1830
|
};
|
|
1831
|
+
if (hasGeneratedBundle) {
|
|
1832
|
+
return Promise.resolve();
|
|
1833
|
+
}
|
|
1834
|
+
hasGeneratedBundle = true;
|
|
1820
1835
|
if (!resolvedConfig) {
|
|
1821
1836
|
return Promise.resolve();
|
|
1822
1837
|
}
|
|
1823
|
-
var normalizedDtsOptions
|
|
1838
|
+
var normalizedDtsOptions;
|
|
1839
|
+
try {
|
|
1840
|
+
normalizedDtsOptions = dtsPlugin.normalizeDtsOptions(dtsModuleFederationConfig, resolvedConfig.root);
|
|
1841
|
+
} catch (error) {
|
|
1842
|
+
logDtsError(error, options.dts);
|
|
1843
|
+
return Promise.resolve();
|
|
1844
|
+
}
|
|
1824
1845
|
if (typeof normalizedDtsOptions !== 'object') {
|
|
1825
1846
|
return Promise.resolve();
|
|
1826
1847
|
}
|
|
1827
1848
|
var context = resolvedConfig.root;
|
|
1828
1849
|
var outputDir = resolveOutputDir(resolvedConfig);
|
|
1829
|
-
var consumeOptions
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1850
|
+
var consumeOptions;
|
|
1851
|
+
try {
|
|
1852
|
+
consumeOptions = dtsPlugin.normalizeConsumeTypesOptions({
|
|
1853
|
+
context: context,
|
|
1854
|
+
dtsOptions: normalizedDtsOptions,
|
|
1855
|
+
pluginOptions: dtsModuleFederationConfig
|
|
1856
|
+
});
|
|
1857
|
+
} catch (error) {
|
|
1858
|
+
logDtsError(error, normalizedDtsOptions);
|
|
1859
|
+
return Promise.resolve();
|
|
1860
|
+
}
|
|
1861
|
+
var _temp5 = function (_consumeOptions) {
|
|
1862
|
+
if ((_consumeOptions = consumeOptions) != null && (_consumeOptions = _consumeOptions.host) != null && _consumeOptions.typesOnBuild) {
|
|
1836
1863
|
var _temp3 = _catch(function () {
|
|
1837
1864
|
return Promise.resolve(dtsPlugin.consumeTypesAPI(consumeOptions)).then(function () {});
|
|
1838
1865
|
}, function (error) {
|
package/lib/index.esm.js
CHANGED
|
@@ -1635,9 +1635,13 @@ var normalizeDevDtsOptions = function normalizeDevDtsOptions(dts, context) {
|
|
|
1635
1635
|
}, 'mfOptions.dts')(dts);
|
|
1636
1636
|
};
|
|
1637
1637
|
var logDtsError = function logDtsError(error, dtsOptions) {
|
|
1638
|
-
if (dtsOptions
|
|
1639
|
-
|
|
1638
|
+
if (dtsOptions === false) {
|
|
1639
|
+
return;
|
|
1640
1640
|
}
|
|
1641
|
+
if (typeof dtsOptions === 'object' && dtsOptions && dtsOptions.displayErrorInTerminal === false) {
|
|
1642
|
+
return;
|
|
1643
|
+
}
|
|
1644
|
+
console.error(error);
|
|
1641
1645
|
};
|
|
1642
1646
|
function pluginDts(options) {
|
|
1643
1647
|
if (options.dts === false) {
|
|
@@ -1647,6 +1651,7 @@ function pluginDts(options) {
|
|
|
1647
1651
|
var resolvedConfig;
|
|
1648
1652
|
var devWorker;
|
|
1649
1653
|
var normalizedDevOptions;
|
|
1654
|
+
var hasGeneratedBundle = false;
|
|
1650
1655
|
var devPlugin = {
|
|
1651
1656
|
name: 'module-federation-dts-dev',
|
|
1652
1657
|
apply: 'serve',
|
|
@@ -1772,15 +1777,21 @@ function pluginDts(options) {
|
|
|
1772
1777
|
configResolved: function configResolved(config) {
|
|
1773
1778
|
resolvedConfig = config;
|
|
1774
1779
|
},
|
|
1775
|
-
|
|
1780
|
+
generateBundle: function generateBundle() {
|
|
1776
1781
|
try {
|
|
1777
1782
|
var _temp6 = function _temp6() {
|
|
1778
|
-
var generateOptions
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1783
|
+
var generateOptions;
|
|
1784
|
+
try {
|
|
1785
|
+
generateOptions = normalizeGenerateTypesOptions({
|
|
1786
|
+
context: context,
|
|
1787
|
+
outputDir: outputDir,
|
|
1788
|
+
dtsOptions: normalizedDtsOptions,
|
|
1789
|
+
pluginOptions: dtsModuleFederationConfig
|
|
1790
|
+
});
|
|
1791
|
+
} catch (error) {
|
|
1792
|
+
logDtsError(error, normalizedDtsOptions);
|
|
1793
|
+
return;
|
|
1794
|
+
}
|
|
1784
1795
|
if (!generateOptions) {
|
|
1785
1796
|
return;
|
|
1786
1797
|
}
|
|
@@ -1793,22 +1804,38 @@ function pluginDts(options) {
|
|
|
1793
1804
|
});
|
|
1794
1805
|
if (_temp4 && _temp4.then) return _temp4.then(function () {});
|
|
1795
1806
|
};
|
|
1807
|
+
if (hasGeneratedBundle) {
|
|
1808
|
+
return Promise.resolve();
|
|
1809
|
+
}
|
|
1810
|
+
hasGeneratedBundle = true;
|
|
1796
1811
|
if (!resolvedConfig) {
|
|
1797
1812
|
return Promise.resolve();
|
|
1798
1813
|
}
|
|
1799
|
-
var normalizedDtsOptions
|
|
1814
|
+
var normalizedDtsOptions;
|
|
1815
|
+
try {
|
|
1816
|
+
normalizedDtsOptions = normalizeDtsOptions(dtsModuleFederationConfig, resolvedConfig.root);
|
|
1817
|
+
} catch (error) {
|
|
1818
|
+
logDtsError(error, options.dts);
|
|
1819
|
+
return Promise.resolve();
|
|
1820
|
+
}
|
|
1800
1821
|
if (typeof normalizedDtsOptions !== 'object') {
|
|
1801
1822
|
return Promise.resolve();
|
|
1802
1823
|
}
|
|
1803
1824
|
var context = resolvedConfig.root;
|
|
1804
1825
|
var outputDir = resolveOutputDir(resolvedConfig);
|
|
1805
|
-
var consumeOptions
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1826
|
+
var consumeOptions;
|
|
1827
|
+
try {
|
|
1828
|
+
consumeOptions = normalizeConsumeTypesOptions({
|
|
1829
|
+
context: context,
|
|
1830
|
+
dtsOptions: normalizedDtsOptions,
|
|
1831
|
+
pluginOptions: dtsModuleFederationConfig
|
|
1832
|
+
});
|
|
1833
|
+
} catch (error) {
|
|
1834
|
+
logDtsError(error, normalizedDtsOptions);
|
|
1835
|
+
return Promise.resolve();
|
|
1836
|
+
}
|
|
1837
|
+
var _temp5 = function (_consumeOptions) {
|
|
1838
|
+
if ((_consumeOptions = consumeOptions) != null && (_consumeOptions = _consumeOptions.host) != null && _consumeOptions.typesOnBuild) {
|
|
1812
1839
|
var _temp3 = _catch(function () {
|
|
1813
1840
|
return Promise.resolve(consumeTypesAPI(consumeOptions)).then(function () {});
|
|
1814
1841
|
}, function (error) {
|
package/lib/index.modern.js
CHANGED
|
@@ -1694,9 +1694,13 @@ const normalizeDevDtsOptions = (dts, context) => {
|
|
|
1694
1694
|
}, 'mfOptions.dts')(dts);
|
|
1695
1695
|
};
|
|
1696
1696
|
const logDtsError = (error, dtsOptions) => {
|
|
1697
|
-
if (dtsOptions
|
|
1698
|
-
|
|
1697
|
+
if (dtsOptions === false) {
|
|
1698
|
+
return;
|
|
1699
|
+
}
|
|
1700
|
+
if (typeof dtsOptions === 'object' && dtsOptions && dtsOptions.displayErrorInTerminal === false) {
|
|
1701
|
+
return;
|
|
1699
1702
|
}
|
|
1703
|
+
console.error(error);
|
|
1700
1704
|
};
|
|
1701
1705
|
function pluginDts(options) {
|
|
1702
1706
|
if (options.dts === false) {
|
|
@@ -1706,6 +1710,7 @@ function pluginDts(options) {
|
|
|
1706
1710
|
let resolvedConfig;
|
|
1707
1711
|
let devWorker;
|
|
1708
1712
|
let normalizedDevOptions;
|
|
1713
|
+
let hasGeneratedBundle = false;
|
|
1709
1714
|
const devPlugin = {
|
|
1710
1715
|
name: 'module-federation-dts-dev',
|
|
1711
1716
|
apply: 'serve',
|
|
@@ -1820,35 +1825,57 @@ function pluginDts(options) {
|
|
|
1820
1825
|
configResolved(config) {
|
|
1821
1826
|
resolvedConfig = config;
|
|
1822
1827
|
},
|
|
1823
|
-
async
|
|
1824
|
-
var _consumeOptions
|
|
1828
|
+
async generateBundle() {
|
|
1829
|
+
var _consumeOptions;
|
|
1830
|
+
if (hasGeneratedBundle) {
|
|
1831
|
+
return;
|
|
1832
|
+
}
|
|
1833
|
+
hasGeneratedBundle = true;
|
|
1825
1834
|
if (!resolvedConfig) {
|
|
1826
1835
|
return;
|
|
1827
1836
|
}
|
|
1828
|
-
|
|
1837
|
+
let normalizedDtsOptions;
|
|
1838
|
+
try {
|
|
1839
|
+
normalizedDtsOptions = normalizeDtsOptions(dtsModuleFederationConfig, resolvedConfig.root);
|
|
1840
|
+
} catch (error) {
|
|
1841
|
+
logDtsError(error, options.dts);
|
|
1842
|
+
return;
|
|
1843
|
+
}
|
|
1829
1844
|
if (typeof normalizedDtsOptions !== 'object') {
|
|
1830
1845
|
return;
|
|
1831
1846
|
}
|
|
1832
1847
|
const context = resolvedConfig.root;
|
|
1833
1848
|
const outputDir = resolveOutputDir(resolvedConfig);
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1849
|
+
let consumeOptions;
|
|
1850
|
+
try {
|
|
1851
|
+
consumeOptions = normalizeConsumeTypesOptions({
|
|
1852
|
+
context,
|
|
1853
|
+
dtsOptions: normalizedDtsOptions,
|
|
1854
|
+
pluginOptions: dtsModuleFederationConfig
|
|
1855
|
+
});
|
|
1856
|
+
} catch (error) {
|
|
1857
|
+
logDtsError(error, normalizedDtsOptions);
|
|
1858
|
+
return;
|
|
1859
|
+
}
|
|
1860
|
+
if ((_consumeOptions = consumeOptions) != null && (_consumeOptions = _consumeOptions.host) != null && _consumeOptions.typesOnBuild) {
|
|
1840
1861
|
try {
|
|
1841
1862
|
await consumeTypesAPI(consumeOptions);
|
|
1842
1863
|
} catch (error) {
|
|
1843
1864
|
logDtsError(error, normalizedDtsOptions);
|
|
1844
1865
|
}
|
|
1845
1866
|
}
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1867
|
+
let generateOptions;
|
|
1868
|
+
try {
|
|
1869
|
+
generateOptions = normalizeGenerateTypesOptions({
|
|
1870
|
+
context,
|
|
1871
|
+
outputDir,
|
|
1872
|
+
dtsOptions: normalizedDtsOptions,
|
|
1873
|
+
pluginOptions: dtsModuleFederationConfig
|
|
1874
|
+
});
|
|
1875
|
+
} catch (error) {
|
|
1876
|
+
logDtsError(error, normalizedDtsOptions);
|
|
1877
|
+
return;
|
|
1878
|
+
}
|
|
1852
1879
|
if (!generateOptions) {
|
|
1853
1880
|
return;
|
|
1854
1881
|
}
|
package/lib/index.umd.js
CHANGED
|
@@ -1654,9 +1654,13 @@
|
|
|
1654
1654
|
}, 'mfOptions.dts')(dts);
|
|
1655
1655
|
};
|
|
1656
1656
|
var logDtsError = function logDtsError(error, dtsOptions) {
|
|
1657
|
-
if (dtsOptions
|
|
1658
|
-
|
|
1657
|
+
if (dtsOptions === false) {
|
|
1658
|
+
return;
|
|
1659
1659
|
}
|
|
1660
|
+
if (typeof dtsOptions === 'object' && dtsOptions && dtsOptions.displayErrorInTerminal === false) {
|
|
1661
|
+
return;
|
|
1662
|
+
}
|
|
1663
|
+
console.error(error);
|
|
1660
1664
|
};
|
|
1661
1665
|
function pluginDts(options) {
|
|
1662
1666
|
if (options.dts === false) {
|
|
@@ -1666,6 +1670,7 @@
|
|
|
1666
1670
|
var resolvedConfig;
|
|
1667
1671
|
var devWorker;
|
|
1668
1672
|
var normalizedDevOptions;
|
|
1673
|
+
var hasGeneratedBundle = false;
|
|
1669
1674
|
var devPlugin = {
|
|
1670
1675
|
name: 'module-federation-dts-dev',
|
|
1671
1676
|
apply: 'serve',
|
|
@@ -1791,15 +1796,21 @@
|
|
|
1791
1796
|
configResolved: function configResolved(config) {
|
|
1792
1797
|
resolvedConfig = config;
|
|
1793
1798
|
},
|
|
1794
|
-
|
|
1799
|
+
generateBundle: function generateBundle() {
|
|
1795
1800
|
try {
|
|
1796
1801
|
var _temp6 = function _temp6() {
|
|
1797
|
-
var generateOptions
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1802
|
+
var generateOptions;
|
|
1803
|
+
try {
|
|
1804
|
+
generateOptions = dtsPlugin.normalizeGenerateTypesOptions({
|
|
1805
|
+
context: context,
|
|
1806
|
+
outputDir: outputDir,
|
|
1807
|
+
dtsOptions: normalizedDtsOptions,
|
|
1808
|
+
pluginOptions: dtsModuleFederationConfig
|
|
1809
|
+
});
|
|
1810
|
+
} catch (error) {
|
|
1811
|
+
logDtsError(error, normalizedDtsOptions);
|
|
1812
|
+
return;
|
|
1813
|
+
}
|
|
1803
1814
|
if (!generateOptions) {
|
|
1804
1815
|
return;
|
|
1805
1816
|
}
|
|
@@ -1812,22 +1823,38 @@
|
|
|
1812
1823
|
});
|
|
1813
1824
|
if (_temp4 && _temp4.then) return _temp4.then(function () {});
|
|
1814
1825
|
};
|
|
1826
|
+
if (hasGeneratedBundle) {
|
|
1827
|
+
return Promise.resolve();
|
|
1828
|
+
}
|
|
1829
|
+
hasGeneratedBundle = true;
|
|
1815
1830
|
if (!resolvedConfig) {
|
|
1816
1831
|
return Promise.resolve();
|
|
1817
1832
|
}
|
|
1818
|
-
var normalizedDtsOptions
|
|
1833
|
+
var normalizedDtsOptions;
|
|
1834
|
+
try {
|
|
1835
|
+
normalizedDtsOptions = dtsPlugin.normalizeDtsOptions(dtsModuleFederationConfig, resolvedConfig.root);
|
|
1836
|
+
} catch (error) {
|
|
1837
|
+
logDtsError(error, options.dts);
|
|
1838
|
+
return Promise.resolve();
|
|
1839
|
+
}
|
|
1819
1840
|
if (typeof normalizedDtsOptions !== 'object') {
|
|
1820
1841
|
return Promise.resolve();
|
|
1821
1842
|
}
|
|
1822
1843
|
var context = resolvedConfig.root;
|
|
1823
1844
|
var outputDir = resolveOutputDir(resolvedConfig);
|
|
1824
|
-
var consumeOptions
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1845
|
+
var consumeOptions;
|
|
1846
|
+
try {
|
|
1847
|
+
consumeOptions = dtsPlugin.normalizeConsumeTypesOptions({
|
|
1848
|
+
context: context,
|
|
1849
|
+
dtsOptions: normalizedDtsOptions,
|
|
1850
|
+
pluginOptions: dtsModuleFederationConfig
|
|
1851
|
+
});
|
|
1852
|
+
} catch (error) {
|
|
1853
|
+
logDtsError(error, normalizedDtsOptions);
|
|
1854
|
+
return Promise.resolve();
|
|
1855
|
+
}
|
|
1856
|
+
var _temp5 = function (_consumeOptions) {
|
|
1857
|
+
if ((_consumeOptions = consumeOptions) != null && (_consumeOptions = _consumeOptions.host) != null && _consumeOptions.typesOnBuild) {
|
|
1831
1858
|
var _temp3 = _catch(function () {
|
|
1832
1859
|
return Promise.resolve(dtsPlugin.consumeTypesAPI(consumeOptions)).then(function () {});
|
|
1833
1860
|
}, function (error) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/vite",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.7",
|
|
4
4
|
"description": "Vite plugin for Module Federation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -9,6 +9,22 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
"lib/**/*"
|
|
11
11
|
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"prepare": "husky install",
|
|
14
|
+
"fmt": "prettier --write src",
|
|
15
|
+
"fmt.check": "prettier --check src",
|
|
16
|
+
"format": "pretty-quick",
|
|
17
|
+
"dev": "microbundle watch --no-sourcemap --compress=false",
|
|
18
|
+
"build": "rimraf lib && microbundle --no-sourcemap --compress=false",
|
|
19
|
+
"dev-rv": "pnpm -filter 'examples-rust-vite*' run dev",
|
|
20
|
+
"preview-rv": "pnpm -filter 'examples-rust-vite*' run preview",
|
|
21
|
+
"dev-vv": "pnpm -filter 'examples-vite-vite*' run dev",
|
|
22
|
+
"dev-nv": "pnpm -filter 'examples-nuxt-vite-host' -filter 'examples-vite-vite-remote' run dev",
|
|
23
|
+
"preview-vv": "pnpm -filter 'examples-vite-vite*' run preview",
|
|
24
|
+
"multi-example": "pnpm --filter \"multi-example-*\" --parallel run start",
|
|
25
|
+
"test": "vitest",
|
|
26
|
+
"e2e": "playwright test"
|
|
27
|
+
},
|
|
12
28
|
"repository": {
|
|
13
29
|
"type": "git",
|
|
14
30
|
"url": "git+https://github.com/module-federation/vite.git"
|
|
@@ -28,6 +44,7 @@
|
|
|
28
44
|
"url": "https://github.com/module-federation/vite/issues"
|
|
29
45
|
},
|
|
30
46
|
"homepage": "https://github.com/module-federation/vite#readme",
|
|
47
|
+
"packageManager": "pnpm@9.14.2",
|
|
31
48
|
"peerDependencies": {
|
|
32
49
|
"vite": "<=6"
|
|
33
50
|
},
|
|
@@ -54,20 +71,5 @@
|
|
|
54
71
|
"vite": "^5.4.3",
|
|
55
72
|
"vitest": "^2.1.1",
|
|
56
73
|
"wait-on": "^8.0.1"
|
|
57
|
-
},
|
|
58
|
-
"scripts": {
|
|
59
|
-
"fmt": "prettier --write src",
|
|
60
|
-
"fmt.check": "prettier --check src",
|
|
61
|
-
"format": "pretty-quick",
|
|
62
|
-
"dev": "microbundle watch --no-sourcemap --compress=false",
|
|
63
|
-
"build": "rimraf lib && microbundle --no-sourcemap --compress=false",
|
|
64
|
-
"dev-rv": "pnpm -filter 'examples-rust-vite*' run dev",
|
|
65
|
-
"preview-rv": "pnpm -filter 'examples-rust-vite*' run preview",
|
|
66
|
-
"dev-vv": "pnpm -filter 'examples-vite-vite*' run dev",
|
|
67
|
-
"dev-nv": "pnpm -filter 'examples-nuxt-vite-host' -filter 'examples-vite-vite-remote' run dev",
|
|
68
|
-
"preview-vv": "pnpm -filter 'examples-vite-vite*' run preview",
|
|
69
|
-
"multi-example": "pnpm --filter \"multi-example-*\" --parallel run start",
|
|
70
|
-
"test": "vitest",
|
|
71
|
-
"e2e": "playwright test"
|
|
72
74
|
}
|
|
73
|
-
}
|
|
75
|
+
}
|