create-rspack 1.0.14 → 1.1.0-beta.0
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.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,8 @@ import * as __WEBPACK_EXTERNAL_MODULE_node_path__ from "node:path";
|
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_node_url__ from "node:url";
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_create_rstack__ from "create-rstack";
|
|
4
4
|
const src_dirname = __WEBPACK_EXTERNAL_MODULE_node_path__["default"].dirname((0, __WEBPACK_EXTERNAL_MODULE_node_url__.fileURLToPath)(import.meta.url));
|
|
5
|
-
async function getTemplateName(
|
|
5
|
+
async function getTemplateName(param) {
|
|
6
|
+
let { template } = param;
|
|
6
7
|
if ("string" == typeof template) {
|
|
7
8
|
const pair = template.split("-");
|
|
8
9
|
const language = pair[1] ?? "js";
|