Giter Site home page Giter Site logo

mdreal32 / bundled-kubejs Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 4.0 5.17 MB

This is a repo for bundle for kubejs using vite in minecraft.

Home Page: https://npm.im/@kubejs/plugin

License: Apache License 2.0

TypeScript 81.24% JavaScript 1.14% EJS 17.62%

bundled-kubejs's Introduction

Hi everyone Hello :)

My name is Veys. I'm a Software Developer.


Frontend Skills

Backend Skills

Computer Skills

DevOps Skills

Soft Skills

Languages

Education

Work Experience

  • Cybernet LLC - Software Developer, 2022 July - Present
  • AnisLand - Startup - DevOps Engineer, Backend NodeJS Developer, 2022 April - 2022 December
  • MVP Engine (JetBase.io) - Fullstack JavaScript Developer, 2021 October - 2022 February
  • Freelance - PHP Laravel Developer, 2020 January - 2021 October
  • CrinfoTask LLC - Software Developer, 2019 September - 2021 October

Contact Me

bundled-kubejs's People

Contributors

mdreal32 avatar prunoideae avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

bundled-kubejs's Issues

`vite.config.ts` doesn't work

There's two issues with the reading of the vite.config.ts file.

  • On Windows (haven't tested on other systems) the file can't be imported with the error: Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Changing (await import(userDefinedConfigFile)) to (await import(`file://${userDefinedConfigFile}`)) fixes it, but this probably only works on Windows, so a platform check might be required?
  • The module importer can't handle TS files, and as such the vite.config.ts should instead be vite.config.js

On a side note, the newly added Babel transpiler doesn't seem to actually work, but a vite.config.js file looking like this:

import { getBabelOutputPlugin } from '@rollup/plugin-babel';

export default {
  build: {
    rollupOptions: {
      plugins: [
        getBabelOutputPlugin({
          allowAllFormats: true,
          presets: [
            [
              '@babel/preset-env',
              {
                useBuiltIns: false,
                exclude: ['transform-typeof-symbol'],
                modules: false,
                targets: {
                  ie: "11"
                }
              },
            ],
          ],
        }),
      ],
    },
  },
};

Based on this comment gets the Babel transpilation to actually work. The Babel output probably needs additional tweaking to be perfect for KubeJS, I only did some quick testing with it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.