Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vkontakte/create-vk-mini-app

Package Overview
Dependencies
Maintainers
3
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vkontakte/create-vk-mini-app - npm Package Compare versions

Comparing version 2.0.0-alpha.0 to 2.0.0-alpha.1

2

package.json
{
"name": "@vkontakte/create-vk-mini-app",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"description": "VK Mini Apps Boilerplate",

@@ -5,0 +5,0 @@ "repository": "https://github.com/VKCOM/create-vk-mini-app",

import { defineConfig, transformWithEsbuild } from 'vite';
import react from '@vitejs/plugin-react';
function handleModuleDirectivesPlugin() {
return {
name: 'handle-module-directives-plugin',
transform(code, id) {
if (id.includes('@vkontakte/icons')) {
code = code.replace(/"use-client";?/g, '');
}
return { code };
},
};
}
function threatJsFilesAsJsx() {
return {
name: 'treat-js-files-as-jsx',
async transform(code, id) {
if (!id.match(/src\/.*\.js$/)) return null;
return transformWithEsbuild(code, id, {
loader: 'jsx',
jsx: 'automatic',
});
},
};
}
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
{
name: 'treat-js-files-as-jsx',
async transform(code, id) {
if (!id.match(/src\/.*\.js$/)) return null;
plugins: [react(), threatJsFilesAsJsx(), handleModuleDirectivesPlugin()],
return transformWithEsbuild(code, id, {
loader: 'jsx',
jsx: 'automatic',
});
},
},
react(),
],
optimizeDeps: {

@@ -22,0 +35,0 @@ force: true,

import { defineConfig, transformWithEsbuild } from 'vite';
import react from '@vitejs/plugin-react';
function handleModuleDirectivesPlugin() {
return {
name: 'handle-module-directives-plugin',
transform(code, id) {
if (id.includes('@vkontakte/icons')) {
code = code.replace(/"use-client";?/g, '');
}
return { code };
},
};
}
function threatJsFilesAsJsx() {
return {
name: 'treat-js-files-as-jsx',
async transform(code, id) {
if (!id.match(/src\/.*\.js$/)) return null;
return transformWithEsbuild(code, id, {
loader: 'jsx',
jsx: 'automatic',
});
},
};
}
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
{
name: 'treat-js-files-as-jsx',
async transform(code, id) {
if (!id.match(/src\/.*\.js$/)) return null;
plugins: [react(), threatJsFilesAsJsx(), handleModuleDirectivesPlugin()],
return transformWithEsbuild(code, id, {
loader: 'jsx',
jsx: 'automatic',
});
},
},
react(),
],
optimizeDeps: {

@@ -22,0 +35,0 @@ force: true,

import { defineConfig, transformWithEsbuild } from 'vite';
import react from '@vitejs/plugin-react';
function handleModuleDirectivesPlugin() {
return {
name: 'handle-module-directives-plugin',
transform(code, id) {
if (id.includes('@vkontakte/icons')) {
code = code.replace(/"use-client";?/g, '');
}
return { code };
},
};
}
function threatJsFilesAsJsx() {
return {
name: 'treat-js-files-as-jsx',
async transform(code, id) {
if (!id.match(/src\/.*\.js$/)) return null;
return transformWithEsbuild(code, id, {
loader: 'jsx',
jsx: 'automatic',
});
},
};
}
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
{
name: 'treat-js-files-as-jsx',
async transform(code, id) {
if (!id.match(/src\/.*\.js$/)) return null;
plugins: [react(), threatJsFilesAsJsx(), handleModuleDirectivesPlugin()],
return transformWithEsbuild(code, id, {
loader: 'jsx',
jsx: 'automatic',
});
},
},
react(),
],
optimizeDeps: {

@@ -22,0 +35,0 @@ force: true,

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
function handleModuleDirectivesPlugin() {
return {
name: 'handle-module-directives-plugin',
transform(code, id) {
if (id.includes('@vkontakte/icons')) {
code = code.replace(/"use-client";?/g, '');
}
return { code };
},
};
}
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [react(), handleModuleDirectivesPlugin()],

@@ -8,0 +20,0 @@ build: {

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
function handleModuleDirectivesPlugin() {
return {
name: 'handle-module-directives-plugin',
transform(code, id) {
if (id.includes('@vkontakte/icons')) {
code = code.replace(/"use-client";?/g, '');
}
return { code };
},
};
}
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [react(), handleModuleDirectivesPlugin()],

@@ -8,0 +20,0 @@ build: {

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
function handleModuleDirectivesPlugin() {
return {
name: 'handle-module-directives-plugin',
transform(code, id) {
if (id.includes('@vkontakte/icons')) {
code = code.replace(/"use-client";?/g, '');
}
return { code };
},
};
}
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [react(), handleModuleDirectivesPlugin()],

@@ -8,0 +20,0 @@ build: {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc