cozy / cozy-libs

Libraries used to build Cozy products and tools.
MIT License
7 stars 12 forks source link

cozy-flags: import syntax seems to have changed #1330

Open acezard opened 3 years ago

acezard commented 3 years ago

PR for reference: https://github.com/cozy/cozy-notes/pull/201

Before:

import { useFlag } from 'cozy-flags'
import flag, { FlagSwitcher } from 'cozy-flags'

After updating cozy-flags: useFlag and FlagSwitcher are undefined.

Temporary fix:

import useFlag from 'cozy-flags/dist/useFlag'
import FlagSwitcher from 'cozy-flags/dist/FlagSwitcher'
import flag from 'cozy-flags'

Here everything is defined, but the import paths are non-idiomatic.

Crash-- commented 3 years ago

I think this is related to https://github.com/cozy/cozy-libs/pull/1273

acezard commented 3 years ago

I think this is related to #1273

Seems likely yes, I can't check on it right now but will do later if nobody is available in the meantime