create-vite-extra 1.0.0 → 1.0.1
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
CHANGED
|
@@ -559,7 +559,11 @@ function pkgFromUserAgent(userAgent) {
|
|
|
559
559
|
* @param {{ isTs: boolean, isDeno: boolean }} options
|
|
560
560
|
*/
|
|
561
561
|
function setupReactSwc(root, { isTs, isDeno }) {
|
|
562
|
-
if (
|
|
562
|
+
if (isDeno) {
|
|
563
|
+
editFile(path.resolve(root, 'deno.json'), (content) => {
|
|
564
|
+
return content.replace(/deno run -A/g, 'deno run -A --unstable')
|
|
565
|
+
})
|
|
566
|
+
} else {
|
|
563
567
|
editFile(path.resolve(root, 'package.json'), (content) => {
|
|
564
568
|
return content.replace(
|
|
565
569
|
/"@vitejs\/plugin-react": ".+?"/,
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Vite + Lit</title>
|
|
8
8
|
<link rel="stylesheet" href="./src/index.css" />
|
|
9
|
-
<script type="module" src="/src/my-element.
|
|
9
|
+
<script type="module" src="/src/my-element.ts"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<my-element>
|