Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require / Import Syntax #53

Closed
kefniark opened this issue Oct 3, 2019 · 1 comment
Closed

Require / Import Syntax #53

kefniark opened this issue Oct 3, 2019 · 1 comment
Labels

Comments

@kefniark
Copy link
Owner

kefniark commented Oct 3, 2019

Description

With the new version of Fatina v3.0, the syntax of import slightly changed:

Typescript / ESM modules

import * as Fatina from 'fatina';
// become
import Fatina from 'fatina';

CommonJS (Node)

var Fatina = require('fatina');
// become
var Fatina = require('fatina').default;

Web / CDN
Nothing change, still use global variable Fatina

Why ?

Sorry for the modification, this default export really makes auto-completion and declaration support easier to manage.

image
image

@kefniark kefniark pinned this issue Oct 3, 2019
@kefniark kefniark closed this as completed Oct 3, 2019
@kebab-banana
Copy link

kebab-banana commented Oct 3, 2019

thanks, I was about to open issue about vscode auto-completion 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants