Skip to content

Commit

Permalink
Merge pull request #12 from jorroll/monorepo-fix
Browse files Browse the repository at this point in the history
fix: ensure `solid-js` is included in pre-bundle
  • Loading branch information
amoutonbrady authored May 13, 2021
2 parents a3720a5 + 7098edc commit ba5d40c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,29 @@ const runtimeCode = readFileSync(runtimeFilePath, 'utf-8');
/** Configuration options for vite-plugin-solid. */
export interface Options {
/**
* This will inject solid-js/dev in place of solid-js in dev mode. Has no
* effect in prod. If set to `false`, it won't inject it in dev. This is
* This will inject solid-js/dev in place of solid-js in dev mode. Has no
* effect in prod. If set to `false`, it won't inject it in dev. This is
* useful for extra logs and debugging.
*
* @default true
*/
dev: boolean;
/**
* This will force SSR code in the produced files. This is experiemental
* This will force SSR code in the produced files. This is experiemental
* and mostly not working yet.
*
* @default false
*/
ssr: boolean;
/**
* This will inject HMR runtime in dev mode. Has no effect in prod. If
* This will inject HMR runtime in dev mode. Has no effect in prod. If
* set to `false`, it won't inject the runtime in dev.
*
* @default true
*/
hot: boolean;
/**
* Pass any additional babel transform options. They will be merged with
* Pass any additional babel transform options. They will be merged with
* the transformations required by Solid.
*
* @default {}
Expand Down Expand Up @@ -80,7 +80,7 @@ export default function solidPlugin(options: Partial<Options> = {}): Plugin {
alias: [{ find: /^solid-refresh$/, replacement: runtimePublicPath }, ...alias],
},
optimizeDeps: {
include: ['solid-js/dev', 'solid-js/web'],
include: ['solid-js', 'solid-js/dev', 'solid-js/web'],
},
}) as UserConfig;
},
Expand Down

0 comments on commit ba5d40c

Please sign in to comment.