@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.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2004,6 +2004,9 @@ class ConfigBuilder {
|
|
|
2004
2004
|
emptyOutDir: false,
|
|
2005
2005
|
sourcemap: env.mode !== "production" ? "inline" : false
|
|
2006
2006
|
},
|
|
2007
|
+
server: {
|
|
2008
|
+
hmr: fusionOptions.cliParams?.hmr
|
|
2009
|
+
},
|
|
2007
2010
|
plugins: [],
|
|
2008
2011
|
css: {
|
|
2009
2012
|
devSourcemap: true
|
|
@@ -2175,7 +2178,7 @@ class ConfigBuilder {
|
|
|
2175
2178
|
|
|
2176
2179
|
function getArgsAfterDoubleDashes(argv) {
|
|
2177
2180
|
argv ??= process.argv;
|
|
2178
|
-
return argv.
|
|
2181
|
+
return argv.join(" ").split(" -- ").slice(1).join(" -- ").trim().split(" ").filter((v) => v !== "");
|
|
2179
2182
|
}
|
|
2180
2183
|
function parseArgv(argv) {
|
|
2181
2184
|
const app = yargs();
|
|
@@ -2198,6 +2201,10 @@ function parseArgv(argv) {
|
|
|
2198
2201
|
type: "string",
|
|
2199
2202
|
description: "Path to server file"
|
|
2200
2203
|
});
|
|
2204
|
+
app.option("no-hmr", {
|
|
2205
|
+
type: "boolean",
|
|
2206
|
+
description: "Disable HMR for dev server"
|
|
2207
|
+
});
|
|
2201
2208
|
app.option("verbose", {
|
|
2202
2209
|
alias: "v",
|
|
2203
2210
|
type: "count",
|
|
@@ -8839,7 +8846,7 @@ function useFusion(fusionOptions = {}, tasks) {
|
|
|
8839
8846
|
} else {
|
|
8840
8847
|
params._ = originalTasks;
|
|
8841
8848
|
}
|
|
8842
|
-
params = mergeOptions(params, resolvedOptions.cliParams);
|
|
8849
|
+
resolvedOptions.cliParams = params = mergeOptions(params, resolvedOptions.cliParams);
|
|
8843
8850
|
return [
|
|
8844
8851
|
{
|
|
8845
8852
|
name: "fusion",
|