mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
another exports fix
This commit is contained in:
parent
e232cc6550
commit
712d53b86c
@ -3,7 +3,7 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## [3.1.5][2019-02-27]
|
||||
## [3.1.6][2019-02-27]
|
||||
|
||||
* Fix commonjs exports
|
||||
* Fix global injections
|
||||
|
11
src/Core.ts
11
src/Core.ts
@ -1,11 +1,8 @@
|
||||
const KonvaInternals = require('./_CoreInternals');
|
||||
|
||||
var Konva = require('./_FullInternals');
|
||||
// add Konva to global variable
|
||||
// umd build will actually do it
|
||||
// but it may now it case of modules and bundlers
|
||||
KonvaInternals._injectGlobal(KonvaInternals);
|
||||
|
||||
exports.__esModule = true;
|
||||
exports['default'] = KonvaInternals;
|
||||
|
||||
Konva._injectGlobal(Konva);
|
||||
exports['default'] = Konva;
|
||||
Konva.default = Konva;
|
||||
module.exports = exports['default'];
|
||||
|
@ -1,11 +1,8 @@
|
||||
const Konva = require('./_FullInternals');
|
||||
|
||||
var Konva = require('./_FullInternals');
|
||||
// add Konva to global variable
|
||||
// umd build will actually do it
|
||||
// but it may now it case of modules and bundlers
|
||||
Konva._injectGlobal(Konva);
|
||||
|
||||
exports.__esModule = true;
|
||||
exports['default'] = Konva;
|
||||
|
||||
Konva.default = Konva;
|
||||
module.exports = exports['default'];
|
||||
|
Loading…
Reference in New Issue
Block a user