1.0.20 • Published 6 years ago

@kano/es6-resolution v1.0.20

Weekly downloads
6
License
MIT
Repository
-
Last release
6 years ago

ES6 names resolution for servers

Transforms your named ES6 Imports into resolved paths, allowing a browser to fetch the dependencies.

Usage

const resolve = require('@kano/es6-resolution');

const body = `
import { Utils } from '@acme/my-lib/lib/utils.js';

`;

const upgradedBody = resolve(body, 'application/javascript', __dirname + '/index.js');

Will be translated to

import { Utils } from '../../node_modules/@acme/my-lib/lib/utils.js';

Browsers will be happy and no code compilation is needed

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago