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

storybook-builder-vite

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storybook-builder-vite - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

mock-core-js.js

22

optimizeDeps.js

@@ -11,2 +11,3 @@ // We need Vite to precompile these dependencies, because they contain non-ESM code that would break

'lodash/isPlainObject',
'lodash/mapKeys',
'lodash/pickBy',

@@ -33,2 +34,3 @@ 'lodash/uniq',

'@storybook/csf',
'@storybook/core/client',
'regenerator-runtime/runtime.js',

@@ -47,2 +49,20 @@ 'memoizerific',

'qs',
'overlayscrollbars',
'prettier/parser-babel',
'prettier/parser-flow',
'prettier/parser-typescript',
'loader-utils',
'estraverse',
'refractor/core',
'refractor/lang/bash.js',
'refractor/lang/css.js',
'refractor/lang/graphql.js',
'refractor/lang/jsx.js',
'refractor/lang/js-extras.js',
'refractor/lang/json.js',
'refractor/lang/markup.js',
'refractor/lang/markdown.js',
'refractor/lang/yaml.js',
'refractor/lang/tsx.js',
'refractor/lang/typescript.js'
].filter((m) => {

@@ -55,3 +75,3 @@ try {

}
}),
})
};

6

package.json
{
"name": "storybook-builder-vite",
"version": "0.0.1",
"version": "0.0.2",
"description": "An experimental plugin to run and build Storybooks with Vite",
"main": "index.js",
"scripts": {
},
"scripts": {},
"author": "Eirik Sletteberg",
"license": "MIT",
"dependencies": {
"core-js": "^3.10.1",
"glob-promise": "^4.1.0"

@@ -12,0 +12,0 @@ },

@@ -5,2 +5,3 @@ const path = require('path');

const { codeGeneratorPlugin } = require('./code-generator-plugin.js');
const { mockCoreJs } = require('./mock-core-js.js');
const reactPlugin = require('@vitejs/plugin-react-refresh');

@@ -14,3 +15,3 @@

const plugins = [codeGeneratorPlugin(options)];
const plugins = [codeGeneratorPlugin(options), mockCoreJs()];
if (framework === 'vue') {

@@ -17,0 +18,0 @@ const vuePlugin = await import('@vitejs/plugin-vue').then((plugin) =>

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