Skip to content

1.3.1 TypeScript example doesn't work with Browserify #186

@dpogue

Description

@dpogue

The TypeScript code is set up assuming ES6 modules with a default export are used, but in practice dexie.js does not use a default export.

Trying to subclass Dexie then fails:

import Dexie from 'dexie';

class MyDB extends Dexie {
  // ...
}

Generates the following JS:

var dexie_1 = require('dexie');

var MyDB = (function(_super) {
  __extends(this, _super);
  // ...
})(dexie_1.default);

When running in Browserify, dexie_1.default is undefined, leading to an error when the __extends helper tries to inherit the prototype.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions