This is the prodigal twin brother of the
tatt
package. It adds support for path aliases and bare imports, as is typically required in CommonJS build environments by antiquated frameworks that depend on source code transformation.
npm install tit4tatt
Add aliases that match your project's bundler in package.json
:
{
"_moduleAliases": {
"~": "."
}
}
Note: module-alias
is only registered in the tit4tatt
executable.
The installation itself has no side effects on the
package resolution of your bundler.
From here on, refer to the documentation of the
tatt
package.
The only differences are that both the bare import and the
executable name are tit4tatt
instead of tatt
.
GNU Affero General Public License
SPDX-License-Identifier: AGPL-3.0-or-later