Skip to content

Commit

Permalink
build with export cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
chakAs3 committed Jul 28, 2023
1 parent f0eea5d commit a647f44
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 114 deletions.
4 changes: 2 additions & 2 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export default defineBuildConfig({
// Core
{ input: 'src/index' , format: 'esm' },
// Preset
{ input: 'src/preset', ext: 'ts',format: 'cjs' },
{ input: 'src/preset', ext: 'ts' , format: 'esm' },
// Runtime dirs
{ input: 'src/preview', ext: 'js', format: 'cjs' },
{ input: 'src/preview', ext: 'ts' ,format: 'esm' },

],

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook-vue/nuxt",
"version": "0.0.1-rc.1",
"version": "0.0.1-rc.3",
"description": "Storybook for Nuxt and Vite: Develop Vue3 components in isolation with Hot Reloading.",
"keywords": [
"storybook",
Expand Down Expand Up @@ -61,16 +61,16 @@
"@nuxt/kit": "^3.6.5",
"@nuxt/schema": "^3.6.5",
"@nuxt/vite-builder": "^3.6.3",
"@storybook/builder-vite": "7.1.0-rc.1",
"@storybook/vue3-vite": "7.1.0-rc.1",
"@storybook/builder-vite": "7.2.0-rc.0",
"@storybook/vue3-vite": "7.2.0-rc.0",
"autoprefixer": "^10.4.14",
"nuxt": "^3.6.5",
"postcss": "^8.4.24",
"postcss-import": "^15.1.0",
"postcss-url": "^10.1.3"
},
"devDependencies": {
"@storybook/types":"7.1.0-rc.1",
"@storybook/types":"7.2.0-rc.0",
"@types/node": "^16.0.0",
"@vitejs/plugin-vue": "^4.0.0",
"@vitejs/plugin-vue-jsx": "^3.0.1",
Expand Down
Loading

0 comments on commit a647f44

Please sign in to comment.