chore(vite): remove typo in the comment / documentation (#17488)
This commit is contained in:
parent
2d87f77217
commit
26e3e16cb9
@ -189,7 +189,7 @@ export default defineConfig({
|
|||||||
name: 'pure-libs-rlv1',
|
name: 'pure-libs-rlv1',
|
||||||
fileName: 'index',
|
fileName: 'index',
|
||||||
// Change this to the formats you want to support.
|
// Change this to the formats you want to support.
|
||||||
// Don't forgot to update your package.json as well.
|
// Don't forget to update your package.json as well.
|
||||||
formats: ['es', 'cjs'],
|
formats: ['es', 'cjs'],
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
|
|||||||
@ -189,7 +189,7 @@ export default defineConfig({
|
|||||||
name: 'pure-libs-rlv1',
|
name: 'pure-libs-rlv1',
|
||||||
fileName: 'index',
|
fileName: 'index',
|
||||||
// Change this to the formats you want to support.
|
// Change this to the formats you want to support.
|
||||||
// Don't forgot to update your package.json as well.
|
// Don't forget to update your package.json as well.
|
||||||
formats: ['es', 'cjs'],
|
formats: ['es', 'cjs'],
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
|
|||||||
@ -41,7 +41,7 @@ export default defineConfig({
|
|||||||
name: 'my-lib',
|
name: 'my-lib',
|
||||||
fileName: 'index',
|
fileName: 'index',
|
||||||
// Change this to the formats you want to support.
|
// Change this to the formats you want to support.
|
||||||
// Don't forgot to update your package.json as well.
|
// Don't forget to update your package.json as well.
|
||||||
formats: ['es', 'cjs'],
|
formats: ['es', 'cjs'],
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
@ -94,7 +94,7 @@ export default defineConfig({
|
|||||||
name: 'react-lib-nonb-jest',
|
name: 'react-lib-nonb-jest',
|
||||||
fileName: 'index',
|
fileName: 'index',
|
||||||
// Change this to the formats you want to support.
|
// Change this to the formats you want to support.
|
||||||
// Don't forgot to update your package.json as well.
|
// Don't forget to update your package.json as well.
|
||||||
formats: ['es', 'cjs'],
|
formats: ['es', 'cjs'],
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
@ -168,7 +168,7 @@ export default defineConfig({
|
|||||||
name: 'react-lib-nonb-vitest',
|
name: 'react-lib-nonb-vitest',
|
||||||
fileName: 'index',
|
fileName: 'index',
|
||||||
// Change this to the formats you want to support.
|
// Change this to the formats you want to support.
|
||||||
// Don't forgot to update your package.json as well.
|
// Don't forget to update your package.json as well.
|
||||||
formats: ['es', 'cjs'],
|
formats: ['es', 'cjs'],
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
|
|||||||
@ -20,7 +20,7 @@ import { joinPathFragments } from '@nx/devkit';
|
|||||||
name: 'my-app',
|
name: 'my-app',
|
||||||
fileName: 'index',
|
fileName: 'index',
|
||||||
// Change this to the formats you want to support.
|
// Change this to the formats you want to support.
|
||||||
// Don't forgot to update your package.json as well.
|
// Don't forget to update your package.json as well.
|
||||||
formats: ['es', 'cjs']
|
formats: ['es', 'cjs']
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
@ -67,7 +67,7 @@ import { defineConfig } from 'vite';
|
|||||||
name: 'my-app',
|
name: 'my-app',
|
||||||
fileName: 'index',
|
fileName: 'index',
|
||||||
// Change this to the formats you want to support.
|
// Change this to the formats you want to support.
|
||||||
// Don't forgot to update your package.json as well.
|
// Don't forget to update your package.json as well.
|
||||||
formats: ['es', 'cjs']
|
formats: ['es', 'cjs']
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
@ -119,7 +119,7 @@ import { defineConfig } from 'vite';
|
|||||||
name: 'my-app',
|
name: 'my-app',
|
||||||
fileName: 'index',
|
fileName: 'index',
|
||||||
// Change this to the formats you want to support.
|
// Change this to the formats you want to support.
|
||||||
// Don't forgot to update your package.json as well.
|
// Don't forget to update your package.json as well.
|
||||||
formats: ['es', 'cjs']
|
formats: ['es', 'cjs']
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
@ -170,7 +170,7 @@ import { defineConfig } from 'vite';
|
|||||||
name: 'my-app',
|
name: 'my-app',
|
||||||
fileName: 'index',
|
fileName: 'index',
|
||||||
// Change this to the formats you want to support.
|
// Change this to the formats you want to support.
|
||||||
// Don't forgot to update your package.json as well.
|
// Don't forget to update your package.json as well.
|
||||||
formats: ['es', 'cjs']
|
formats: ['es', 'cjs']
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
@ -218,7 +218,7 @@ exports[`ensureViteConfigIsCorrect should add build options if it is using condi
|
|||||||
...{
|
...{
|
||||||
my: 'option',
|
my: 'option',
|
||||||
},
|
},
|
||||||
..."\\n // Configuration for building your library.\\n // See: https://vitejs.dev/guide/build.html#library-mode\\n build: {\\n lib: {\\n // Could also be a dictionary or array of multiple entry points.\\n entry: 'src/index.ts',\\n name: 'my-app',\\n fileName: 'index',\\n // Change this to the formats you want to support.\\n // Don't forgot to update your package.json as well.\\n formats: ['es', 'cjs']\\n },\\n rollupOptions: {\\n // External packages that should not be bundled into your library.\\n external: [\\"'react', 'react-dom', 'react/jsx-runtime'\\"]\\n }\\n },"
|
..."\\n // Configuration for building your library.\\n // See: https://vitejs.dev/guide/build.html#library-mode\\n build: {\\n lib: {\\n // Could also be a dictionary or array of multiple entry points.\\n entry: 'src/index.ts',\\n name: 'my-app',\\n fileName: 'index',\\n // Change this to the formats you want to support.\\n // Don't forget to update your package.json as well.\\n formats: ['es', 'cjs']\\n },\\n rollupOptions: {\\n // External packages that should not be bundled into your library.\\n external: [\\"'react', 'react-dom', 'react/jsx-runtime'\\"]\\n }\\n },"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -300,7 +300,7 @@ exports[`ensureViteConfigIsCorrect should not do anything if project has everyth
|
|||||||
name: 'pure-libs-react-vite',
|
name: 'pure-libs-react-vite',
|
||||||
fileName: 'index',
|
fileName: 'index',
|
||||||
// Change this to the formats you want to support.
|
// Change this to the formats you want to support.
|
||||||
// Don't forgot to update your package.json as well.
|
// Don't forget to update your package.json as well.
|
||||||
formats: ['es', 'cjs'],
|
formats: ['es', 'cjs'],
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
|
|||||||
@ -500,7 +500,7 @@ export function createOrEditViteConfig(
|
|||||||
name: '${options.project}',
|
name: '${options.project}',
|
||||||
fileName: 'index',
|
fileName: 'index',
|
||||||
// Change this to the formats you want to support.
|
// Change this to the formats you want to support.
|
||||||
// Don't forgot to update your package.json as well.
|
// Don't forget to update your package.json as well.
|
||||||
formats: ['es', 'cjs']
|
formats: ['es', 'cjs']
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
|
|||||||
@ -178,7 +178,7 @@ export const hasEverything = `
|
|||||||
name: 'pure-libs-react-vite',
|
name: 'pure-libs-react-vite',
|
||||||
fileName: 'index',
|
fileName: 'index',
|
||||||
// Change this to the formats you want to support.
|
// Change this to the formats you want to support.
|
||||||
// Don't forgot to update your package.json as well.
|
// Don't forget to update your package.json as well.
|
||||||
formats: ['es', 'cjs'],
|
formats: ['es', 'cjs'],
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
@ -208,7 +208,7 @@ export const buildOption = `
|
|||||||
name: 'my-app',
|
name: 'my-app',
|
||||||
fileName: 'index',
|
fileName: 'index',
|
||||||
// Change this to the formats you want to support.
|
// Change this to the formats you want to support.
|
||||||
// Don't forgot to update your package.json as well.
|
// Don't forget to update your package.json as well.
|
||||||
formats: ['es', 'cjs']
|
formats: ['es', 'cjs']
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user