Skip to content
Discussion options

You must be logged in to vote

Thanks to modderme123 on SolidJS Discord and @wooorm, got it working. Current setup:

const config = async (): Promise<UserConfig> => {
  const { default: mdx } = await import('@mdx-js/rollup')

  return {
    plugins: [
      solid(),
      WindiCSS(),
      tsconfigPaths(),
      mdx({
        remarkPlugins: [],
        jsxImportSource: 'solid-jsx',
        providerImportSource: 'solid-mdx',
      }),
    ],
    server: { host: '0.0.0.0', port: 3000 },
    resolve: {
      alias: {
        '@/': './src',
        '~blog/': './data/blog',
      },
    },
    optimizeDeps: {
      include: ['solid-js/h/jsx-runtime'],
    },
    build: { minify: true, target: 'esnext', polyfillDynamicImport: f…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@o-az
Comment options

@wooorm
Comment options

@o-az
Comment options

@o-az
Comment options

@wooorm
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by o-az
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants