Skip to content

Commit

Permalink
release: 0.0.1-alpha.5
Browse files Browse the repository at this point in the history
  • Loading branch information
showlotus committed Jan 8, 2024
1 parent 31d7cd3 commit 9f99578
Show file tree
Hide file tree
Showing 30 changed files with 395,491 additions and 76,255 deletions.
4 changes: 2 additions & 2 deletions packages/babel-plugin-jsx/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ var src_default = ({ types }) => ({
const { enableObjectSlots = false } = state.opts;
console.log(enableObjectSlots, "enableObjectSlots");
if (enableObjectSlots) {
state.set("@vue/babel-plugin-jsx/runtimeIsSlot", () => {
state.set("@showlotus/babel-plugin-jsx/runtimeIsSlot", () => {
if (importMap.runtimeIsSlot) {
return importMap.runtimeIsSlot;
}
Expand Down Expand Up @@ -564,7 +564,7 @@ var src_default = ({ types }) => ({
const helpers = {};
const { enableObjectSlots = true } = state.opts;
if (enableObjectSlots) {
state.set("@vue/babel-plugin-jsx/runtimeIsSlot", () => {
state.set("@showlotus/babel-plugin-jsx/runtimeIsSlot", () => {
if (helpers.runtimeIsSlot) {
return helpers.runtimeIsSlot;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/babel-plugin-jsx/dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ var src_default = ({ types }) => ({
const { enableObjectSlots = false } = state.opts;
console.log(enableObjectSlots, "enableObjectSlots");
if (enableObjectSlots) {
state.set("@vue/babel-plugin-jsx/runtimeIsSlot", () => {
state.set("@showlotus/babel-plugin-jsx/runtimeIsSlot", () => {
if (importMap.runtimeIsSlot) {
return importMap.runtimeIsSlot;
}
Expand Down Expand Up @@ -533,7 +533,7 @@ var src_default = ({ types }) => ({
const helpers = {};
const { enableObjectSlots = true } = state.opts;
if (enableObjectSlots) {
state.set("@vue/babel-plugin-jsx/runtimeIsSlot", () => {
state.set("@showlotus/babel-plugin-jsx/runtimeIsSlot", () => {
if (helpers.runtimeIsSlot) {
return helpers.runtimeIsSlot;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-jsx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@showlotus/babel-plugin-jsx",
"version": "0.0.1-alpha.4",
"version": "0.0.1-alpha.5",
"description": "Babel plugin for JSX",
"author": "showlotus <showlotus2000@gmail.com>",
"homepage": "https://github.com/showlotus/babel-plugin-jsx/tree/main/packages/babel-plugin-jsx#readme",
Expand Down
4 changes: 2 additions & 2 deletions packages/babel-plugin-jsx/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default ({ types }: typeof BabelCore): BabelCore.PluginObj<State> => ({
const { enableObjectSlots = false } = state.opts;
console.log(enableObjectSlots, 'enableObjectSlots');
if (enableObjectSlots) {
state.set('@vue/babel-plugin-jsx/runtimeIsSlot', () => {
state.set('@showlotus/babel-plugin-jsx/runtimeIsSlot', () => {
if (importMap.runtimeIsSlot) {
return importMap.runtimeIsSlot;
}
Expand Down Expand Up @@ -119,7 +119,7 @@ export default ({ types }: typeof BabelCore): BabelCore.PluginObj<State> => ({
const helpers: Record<string, t.Identifier> = {};
const { enableObjectSlots = true } = state.opts;
if (enableObjectSlots) {
state.set('@vue/babel-plugin-jsx/runtimeIsSlot', () => {
state.set('@showlotus/babel-plugin-jsx/runtimeIsSlot', () => {
if (helpers.runtimeIsSlot) {
return helpers.runtimeIsSlot;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/jsx-explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@babel/core": "^7.23.2",
"@babel/plugin-transform-typescript": "^7.23.6",
"@vue/babel-plugin-jsx": "workspace:*",
"@showlotus/babel-plugin-jsx": "workspace:*",
"monaco-editor": "^0.44.0",
"vue": "^3.3.7"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/jsx-explorer/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as monaco from 'monaco-editor';
import { watchEffect } from 'vue';
import { type PluginItem, transform } from '@babel/core';
import babelPluginJsx from '@vue/babel-plugin-jsx';
import babelPluginJsx from '@showlotus/babel-plugin-jsx';
import babelPluginTransformTs from '@babel/plugin-transform-typescript';
import {
type VueJSXPluginOptions,
Expand Down
2 changes: 1 addition & 1 deletion packages/jsx-explorer/src/options.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createApp, h, reactive } from 'vue';
import { type VueJSXPluginOptions } from '@vue/babel-plugin-jsx';
import { type VueJSXPluginOptions } from '@showlotus/babel-plugin-jsx';

export { VueJSXPluginOptions };

Expand Down
2 changes: 1 addition & 1 deletion packages/jsx-explorer/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineConfig({
base: './',
resolve: {
alias: {
'@vue/babel-plugin-jsx': '@vue/babel-plugin-jsx/src/index.ts',
'@showlotus/babel-plugin-jsx': '@showlotus/babel-plugin-jsx/src/index.ts',
},
},
build: {
Expand Down
5 changes: 1 addition & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"types": ["vitest/globals"],
"skipLibCheck": true,
"paths": {
"@vue/babel-plugin-jsx": ["./packages/babel-plugin-jsx/src"]
"@showlotus/babel-plugin-jsx": ["./packages/babel-plugin-jsx/src"]
},
"noEmit": true
},
Expand Down
Loading

0 comments on commit 9f99578

Please sign in to comment.