A tool to simplify importing JS modules
MIT License
Bot releases are hidden (Show)
Published by trotzig over 7 years ago
npm link
ed (or symlinked in some other way)@company-name/foobar
Thanks to @dcporter for providing all the context needed to make this release happen, and in general for always providing us with important findings and words of encouragement. ❤️
Published by trotzig over 7 years ago
<div>
, <input>
) as undefinedPublished by trotzig over 7 years ago
Object.defineProperty
goto
for relative pathsPublished by trotzig over 7 years ago
importStatementFormatter
functions are now passed a moduleName
npm install
excludes
when importing (as well as when populating cache).Published by lencioni over 7 years ago
Published by trotzig over 7 years ago
Changes:
import * as foo from 'foo';
) importsgoto
if there are multiple matches.Published by trotzig over 7 years ago
Changes:
Published by trotzig over 7 years ago
Import-js now automatically finds your named exports.
Published by trotzig almost 8 years ago
This version contains a bugfix for globals
not being recognized as a known configuration option.
Published by trotzig almost 8 years ago
lookupPaths
configuration option has been removed. Use moduleNameFormatter
instead to strip out potential prefixes from the path.stripFromPath
configuration option has also been removed in favor of moduleNameFormatter
.const
is now the default declarationKeyword
in node
environments.importjsd
CLI command will now default to show help text instead of starting. Use importjsd run
to start it.import * from 'foo';
)importStatementFormatter
, a new configuration option that you can use to modify the resulting import statement. E.g. importStatementFormatter({ importStatement }) => importStatement.replace(/;$/, '')
.fixImports
, more robust import statement parsing and no pesky eslint version mismatch issues (see #354).Published by trotzig almost 8 years ago
This version fixes an issue with goto
not resolving to the right file path.
Published by trotzig about 8 years ago
Published by lencioni about 8 years ago
moduleSideEffectImports
that can be used tofix-imports
.moduleNameFormatter
configuration option.meteor
environment.importjsd logpath
..importjs.json
in favor of .importjs.js
.Published by trotzig over 8 years ago
This version is focused on speeding up ImportJS. Key changes:
fix-imports
.importjsd
command is meant to be used by editor plugins. Look for updates to https://github.com/Galooshi/vim-import-js, https://github.com/Galooshi/sublime-import-js, and https://github.com/Galooshi/emacs-import-js utilizing the new daemon (coming shortly).Published by trotzig over 8 years ago
This version adds support for running import-js on Windows machines.
Published by trotzig over 8 years ago
Changes:
goto
not working correctly in SublimePublished by lencioni over 8 years ago
Published by trotzig over 8 years ago
Fixes an issue with how we read file content from stdin
.
Published by trotzig over 8 years ago
Breaking change: all configuration keys are now camelCased instead of snake_cased.
Hotfix for relative paths. They weren't working as they should when the path to the current file was passed in with an absolute path (e.g. /home/apps/todo-list/foo.js
). This should fix issues with relative paths in the Sublime plugin.