This file contains hidden or 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
| const { Asset } = require('parcel-bundler'); | |
| class SvelteAsset extends Asset { | |
| constructor(name, pkg, options) { | |
| super(name, pkg, options); | |
| this.type = 'js'; | |
| } | |
| async parse(inputCode) { | |
| return {}; |
This file contains hidden or 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
| module.exports = function (bundler) { | |
| bundler.addAssetType('svelte', require.resolve('./SvelteAsset')); | |
| }; |
This file contains hidden or 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
| const BLOCK_CHAR = '█'; | |
| let blockChar = `${BLOCK_CHAR}`; | |
| function updateTerminal(content) { | |
| document.getElementById('terminal').innerHTML = content; | |
| } | |
| function flickerBlock() { | |
| if (blockChar.length > 0) { | |
| blockChar = ""; |
This file contains hidden or 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
| const { fork } = require('child_process'); | |
| const cache = require('node-shared-cache'); | |
| let childCache = new cache.Cache('children', 524288); | |
| let child; | |
| function startWorker(ready) { | |
| child = fork(require.resolve('./worker'), { | |
| cwd: process.cwd(), | |
| silent: true | |
| }); |
This file contains hidden or 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
| 2.2.x | |
| Name : Sam | |
| Serial : eJzzzU/OLi0odswsqglOzK0xsjQzNzI2NjA1q3GuMQQAnJAJjw== | |
| 3.3.x | |
| Username: personal | |
| eJzzzU/OLi0odswsqilILSrOz0vMqbFEAjXONYY1fu6ufgA/CA4X |
NewerOlder