voltace / browser-cookies

Tiny cookies library for the browser
The Unlicense
89 stars 18 forks source link

Es6 import incompatible #16

Closed kl3sk closed 6 years ago

kl3sk commented 6 years ago

module import is not suported

import Cookie from 'browser-cookies' => TypeError: n.replace is not a function No default export

import * as Cookie from 'browser-cookies' => TypeError: n.replace is not a function

import {set as CookieSet} from 'browser-cookies' => TypeError: n.replace is not a function

As let Cookie = require('browser-cookie') works

Using (Encore) webpack 3.11.0

kl3sk commented 6 years ago

Erratum !

This is not an issue, i used boolean value in the .set method. This is not allowed

Closing