From 7ed663e413027d28f18a23ca705169c897c784a7 Mon Sep 17 00:00:00 2001 From: timcameronryan Date: Sun, 29 Jul 2012 21:29:01 -0700 Subject: [PATCH] Correct __imports__ check to work with absolute paths --- packages/preprocessors/compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/preprocessors/compiler.js b/packages/preprocessors/compiler.js index 594a56b..14027ce 100644 --- a/packages/preprocessors/compiler.js +++ b/packages/preprocessors/compiler.js @@ -261,7 +261,7 @@ function checkDynamicImports(moduleDef) { // try to do a commonJS-style import var filename = util.path.join(directory, '__imports__'); - var module = JSIO(filename, {dontExport: true, suppressErrors: true}); + var module = JSIO.__importer(null, filename, null, '.__imports__', {dontExport: true, suppressErrors: true}); if (module && module.resolve) { try { var imports = module.resolve(gCompilerOpts.environment, gCompilerOpts);