mirror of
https://github.com/SwingTheVine/Wplace-BlueMarble.git
synced 2026-05-06 11:39:27 +00:00
Potentially fixed sourcemap bug
This commit is contained in:
parent
c3887e0d73
commit
3e65f28549
7 changed files with 15 additions and 12 deletions
|
|
@ -55,16 +55,19 @@ const resultEsbuild = await esbuild.build({
|
|||
platform: 'browser', // The platform the bundled code will be operating on
|
||||
legalComments: 'inline', // What level of legal comments are preserved? (Hard: none, Soft: inline)
|
||||
minify: false, // Should the code be minified?
|
||||
write: false // Should we write the outfile?
|
||||
write: false, // Should we write the outfile?
|
||||
sourcemap: true,
|
||||
}).catch(() => process.exit(1));
|
||||
|
||||
// Retrieves the JS file
|
||||
// Retrieves the JS file and map file
|
||||
const resultEsbuildJS = resultEsbuild.outputFiles.find(file => file.path.endsWith('.js'));
|
||||
const resultEsbuildMap = resultEsbuild.outputFiles.find(file => file.path.endsWith('.map'));
|
||||
|
||||
// Obfuscates the JS file
|
||||
const resultTerser = await terser.minify(resultEsbuildJS.text, {
|
||||
sourceMap: {
|
||||
filename: 'dist/BlueMarble.user.js', // The file to make a sourcemap for
|
||||
content: resultEsbuildMap.text, // The esbundle sourcemap
|
||||
filename: 'BlueMarble.user.js', // The file to make a sourcemap for
|
||||
url: ' ' // (This setting is intentional) The sourcemap url to point to.
|
||||
},
|
||||
mangle: {
|
||||
|
|
|
|||
6
dist/BlueMarble.user.js
vendored
6
dist/BlueMarble.user.js
vendored
File diff suppressed because one or more lines are too long
2
dist/BlueMarble.user.js.map
vendored
2
dist/BlueMarble.user.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -35,7 +35,7 @@
|
|||
<a href="https://github.com/SwingTheVine/Wplace-BlueMarble/blob/main/LICENSE.txt" target="_blank"><img alt="Software License: MPL-2.0" src="https://img.shields.io/badge/Software_License-MPL--2.0-brightgreen?style=flat"></a>
|
||||
<a href="https://discord.gg/tpeBPy46hf" target="_blank"><img alt="Contact Me" src="https://img.shields.io/badge/Contact_Me-gray?style=flat&logo=Discord&logoColor=white&logoSize=auto&labelColor=cornflowerblue"></a>
|
||||
<a href="" target="_blank"><img alt="WakaTime" src="https://img.shields.io/badge/Coding_Time-35hrs_30mins-blue?style=flat&logo=wakatime&logoColor=black&logoSize=auto&labelColor=white"></a>
|
||||
<a href="" target="_blank"><img alt="Total Patches" src="https://img.shields.io/badge/Total_Patches-188-black?style=flat"></a>
|
||||
<a href="" target="_blank"><img alt="Total Patches" src="https://img.shields.io/badge/Total_Patches-191-black?style=flat"></a>
|
||||
<a href="" target="_blank"><img alt="Total Lines of Code" src="https://tokei.rs/b1/github/SwingTheVine/Wplace-BlueMarble?category=code"></a>
|
||||
<a href="" target="_blank"><img alt="Total Comments" src="https://tokei.rs/b1/github/SwingTheVine/Wplace-BlueMarble?category=comments"></a>
|
||||
<a href="" target="_blank"><img alt="Build" src="https://github.com/SwingTheVine/Wplace-BlueMarble/actions/workflows/build.yml/badge.svg"></a>
|
||||
|
|
|
|||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "wplace-bluemarble",
|
||||
"version": "0.47.10",
|
||||
"version": "0.48.3",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "wplace-bluemarble",
|
||||
"version": "0.47.10",
|
||||
"version": "0.48.3",
|
||||
"devDependencies": {
|
||||
"esbuild": "^0.25.0",
|
||||
"terser": "^5.43.1"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "wplace-bluemarble",
|
||||
"version": "0.48.0",
|
||||
"version": "0.48.3",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "node build/build.js",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name Blue Marble
|
||||
// @namespace https://github.com/SwingTheVine/
|
||||
// @version 0.48.0
|
||||
// @version 0.48.3
|
||||
// @description A userscript to automate and/or enhance the user experience on Wplace.live. Make sure to comply with the site's Terms of Service, and rules! This script is not affiliated with Wplace.live in any way, use at your own risk. This script is not affiliated with TamperMonkey. The author of this userscript is not responsible for any damages, issues, loss of data, or punishment that may occur as a result of using this script. This script is provided "as is" under the MPL-2.0 license. The "Blue Marble" icon is licensed under CC0 1.0 Universal (CC0 1.0) Public Domain Dedication. The image is owned by NASA.
|
||||
// @author SwingTheVine
|
||||
// @license MPL-2.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue