-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
77 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ pnpm-debug.log* | |
.pnpm-debug.log | ||
|
||
node_modules | ||
*~ | ||
|
||
example/pnpm-lock.yaml | ||
example/dist | ||
example/dist-xdc | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
example/dist | ||
example/dist-xdc | ||
emulator/webxdc.js | ||
src/webxdc.js | ||
pnpm-lock.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
const zipPack = require("vite-plugin-zip-pack").default; | ||
import zipPack from "vite-plugin-zip-pack"; | ||
|
||
function defaultFilter(fileName, filePath, isDirectory) { | ||
return !fileName.endsWith("~"); | ||
} | ||
|
||
// package your app as .xdc file on build | ||
exports.buildXDC = function (opts = {}) { | ||
export function buildXDC(opts = {}) { | ||
opts = Object.assign( | ||
{ outDir: "dist-xdc", outFileName: "app.xdc", filter: defaultFilter }, | ||
opts, | ||
); | ||
return zipPack(opts); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
const _legacy = require("@vitejs/plugin-legacy"); | ||
import _legacy from "@vitejs/plugin-legacy"; | ||
|
||
// convert your code to be compatible with legacy browsers and adds polyfills | ||
exports.legacy = function (opts = {}) { | ||
export function legacy(opts = {}) { | ||
opts = Object.assign( | ||
{ targets: ["ChromeAndroid >=37", "iOS >=11"], renderModernChunks: false }, | ||
opts, | ||
); | ||
return _legacy(opts); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.