@windwalker-io/fusion-next 0.1.2 → 0.1.3
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.cjs +9 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2008,6 +2008,9 @@ class ConfigBuilder {
|
|
|
2008
2008
|
emptyOutDir: false,
|
|
2009
2009
|
sourcemap: env.mode !== "production" ? "inline" : false
|
|
2010
2010
|
},
|
|
2011
|
+
server: {
|
|
2012
|
+
hmr: fusionOptions.cliParams?.hmr
|
|
2013
|
+
},
|
|
2011
2014
|
plugins: [],
|
|
2012
2015
|
css: {
|
|
2013
2016
|
devSourcemap: true
|
|
@@ -2179,7 +2182,7 @@ class ConfigBuilder {
|
|
|
2179
2182
|
|
|
2180
2183
|
function getArgsAfterDoubleDashes(argv) {
|
|
2181
2184
|
argv ??= process.argv;
|
|
2182
|
-
return argv.
|
|
2185
|
+
return argv.join(" ").split(" -- ").slice(1).join(" -- ").trim().split(" ").filter((v) => v !== "");
|
|
2183
2186
|
}
|
|
2184
2187
|
function parseArgv(argv) {
|
|
2185
2188
|
const app = yargs();
|
|
@@ -2202,6 +2205,10 @@ function parseArgv(argv) {
|
|
|
2202
2205
|
type: "string",
|
|
2203
2206
|
description: "Path to server file"
|
|
2204
2207
|
});
|
|
2208
|
+
app.option("no-hmr", {
|
|
2209
|
+
type: "boolean",
|
|
2210
|
+
description: "Disable HMR for dev server"
|
|
2211
|
+
});
|
|
2205
2212
|
app.option("verbose", {
|
|
2206
2213
|
alias: "v",
|
|
2207
2214
|
type: "count",
|
|
@@ -8843,7 +8850,7 @@ function useFusion(fusionOptions = {}, tasks) {
|
|
|
8843
8850
|
} else {
|
|
8844
8851
|
params._ = originalTasks;
|
|
8845
8852
|
}
|
|
8846
|
-
params = mergeOptions(params, resolvedOptions.cliParams);
|
|
8853
|
+
resolvedOptions.cliParams = params = mergeOptions(params, resolvedOptions.cliParams);
|
|
8847
8854
|
return [
|
|
8848
8855
|
{
|
|
8849
8856
|
name: "fusion",
|