fix: custom bundle resolution

This commit is contained in:
calebboyd
2017-09-13 19:07:54 -05:00
parent a2c4f3e9f1
commit d685ec21e5
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import { NexeCompiler } from '../compiler'
import { FuseBox, JSONPlugin, CSSPlugin, HTMLPlugin, QuantumPlugin } from 'fuse-box'
import { readFileAsync, writeFileAsync } from '../util'
import { resolve } from 'path'
import NativeModulePlugin from '../bundling/fuse-native-module-plugin'
import { NexeOptions } from '../options'
@@ -46,7 +47,7 @@ export default async function bundle(compiler: NexeCompiler, next: any) {
let producer = createBundle
if (typeof compiler.options.bundle === 'string') {
producer = require(compiler.options.bundle).createBundle
producer = require(resolve(compiler.options.cwd, compiler.options.bundle)).createBundle
}
compiler.input = await producer(compiler.options)