File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 "mini-css-extract-plugin" : " ^0.8.0" ,
3737 "offline-plugin" : " ^5.0.7" ,
3838 "optimize-css-assets-webpack-plugin" : " ^5.0.3" ,
39+ "path-browserify" : " ^1.0.0" ,
3940 "sweetalert" : " ^2.1.2" ,
4041 "webpack" : " ^4.39.2" ,
4142 "webpack-cli" : " ^3.3.7" ,
Original file line number Diff line number Diff line change 1- import ConvertJavaTextureToBedrock , {
1+ import {
22 AbstractLog ,
33 ArrayInput ,
4+ ConvertJavaTextureToBedrock ,
45 FileInputEntry ,
56 FileOutput
6- } from "@ozelot379/convert-minecraft-java-texture-to-bedrock/build/index.web " ;
7+ } from "@ozelot379/convert-minecraft-java-texture-to-bedrock" ;
78
89addEventListener ( "message" , async ( e ) => {
910 try {
Original file line number Diff line number Diff line change @@ -42,7 +42,17 @@ module.exports = {
4242 output : {
4343 filename : "[name].[contenthash].js" ,
4444 path : __dirname + "/build" ,
45- libraryTarget : "umd"
45+ libraryTarget : "umd" ,
46+ globalObject : "this" // Fix worker
47+ } ,
48+ resolve : {
49+ 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" ,
53+ path : "path-browserify" , // Latest version which supports `path.parse`
54+ readdirp : __dirname + "/src/js/fs_browser_null.js"
55+ }
4656 } ,
4757 plugins : [
4858 new CleanWebpackPlugin ( ) ,
You can’t perform that action at this time.
0 commit comments