Skip to content

Commit

Permalink
refactor: use build transpile
Browse files Browse the repository at this point in the history
  • Loading branch information
arashsheyda committed Mar 9, 2024
1 parent 2b8981a commit 26728d5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,7 @@ export default defineNuxtModule<ModuleOptions>({
if (!config.neo4j.auth.username || !config.neo4j.auth.password)
throw new Error('No credentials provided for Neo4j')

nuxt.hook('nitro:config', (_config) => {
// Inline module runtime in Nitro bundle
_config.externals = defu(typeof _config.externals === 'object' ? _config.externals : {}, {
inline: [resolve('./runtime')],
})
})
nuxt.options.build.transpile = [resolve('./runtime/server')]

addServerImportsDir(resolve('./runtime/server/utils'))
addServerPlugin(resolve('./runtime/server/plugins/neo4j'))
Expand Down

0 comments on commit 26728d5

Please sign in to comment.