Skip to content

Commit 7a1437d

Browse files
author
ozelot379
committed
WIP
1 parent 8d6d636 commit 7a1437d

5 files changed

Lines changed: 10 additions & 9 deletions

File tree

‎package.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "@ozelot379/convert-minecraft-java-texture-to-bedrock-webapp",
3+
"type": "module",
34
"productName": "ConvertJavaTextureToBedrock",
45
"version": "3.3.4",
5-
"description": "Convert Minecraft Java texture packs to Bedrock texture packs",
6+
"description": "Web app for convert Minecraft Java texture packs to Bedrock texture packs",
67
"keywords": [
78
"Minecraft",
89
"Texture",
@@ -44,7 +45,7 @@
4445
"worker-loader": "2.0.0"
4546
},
4647
"engines": {
47-
"node": ">=12.0.0"
48+
"node": ">=14.0.0"
4849
},
4950
"scripts": {
5051
"build": "webpack",

src/js/index.js renamed to src/js/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fileSaver from "file-saver";
22
import OfflinePluginRuntime from "offline-plugin/runtime";
33
import swal from "sweetalert";
4-
import Worker from "./worker";
4+
import Worker from "./worker.mjs";
55
import "./../css/style.less";
66

77
document.addEventListener("DOMContentLoaded", () => {
File renamed without changes.

‎webpack.config.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = {
1818
},
1919
devtool: false,
2020
entry: {
21-
index: "./src/js/index.js"
21+
index: "./src/js/index.mjs"
2222
},
2323
mode: (isDebug ? "development" : "production"),
2424
module: {
@@ -28,7 +28,7 @@ module.exports = {
2828
use: [MiniCssExtractPlugin.loader, "css-loader", "less-loader"]
2929
},
3030
{
31-
test: /worker\.js$/,
31+
test: /worker\.mjs$/,
3232
loader: "worker-loader",
3333
options: {
3434
name: "[name].[contenthash].[ext]"
@@ -47,11 +47,11 @@ module.exports = {
4747
},
4848
resolve: {
4949
alias: {
50-
fs: __dirname + "/src/js/fs_browser_null.js",
51-
"fs-extra": __dirname + "/src/js/fs_browser_null.js",
52-
"graceful-fs": __dirname + "/src/js/fs_browser_null.js",
50+
fs: __dirname + "/src/js/fs_browser_null.mjs",
51+
"fs-extra": __dirname + "/src/js/fs_browser_null.mjs",
52+
"graceful-fs": __dirname + "/src/js/fs_browser_null.mjs",
5353
path: "path-browserify", // Latest version which supports `path.parse`
54-
readdirp: __dirname + "/src/js/fs_browser_null.js"
54+
readdirp: __dirname + "/src/js/fs_browser_null.mjs"
5555
}
5656
},
5757
plugins: [

0 commit comments

Comments
 (0)