diff --git a/build/rollup.config.js b/build/rollup.config.js index d46296b..84630a2 100644 --- a/build/rollup.config.js +++ b/build/rollup.config.js @@ -66,12 +66,15 @@ export default inputs.map(input => { 'lib/uuid', 'lodash', 'module', - 'moment', - 'fastestsmallesttextencoderdecoder' + 'moment' ], plugins: [ - resolve(), - commonJS(), + resolve({ mainFields: ['main'] }), + commonJS({ + namedExports: { + fastestsmallesttextencoderdecoder: ['TextEncoder'] + } + }), alias({ resolve: ['.js', '.json'], core: path.resolve(srcDir, 'core'), diff --git a/environment/config.js b/environment/config.js index 11a2c73..a94ef30 100644 --- a/environment/config.js +++ b/environment/config.js @@ -36,9 +36,7 @@ define(['/node_modules/@oat-sa/tao-core-libs/dist/pathdefinition.js'], function( 'jquery.mockjax': '/node_modules/jquery-mockjax/dist/jquery.mockjax', 'webcrypto-shim': '/node_modules/webcrypto-shim/webcrypto-shim', - 'idb-wrapper': '/node_modules/idb-wrapper/idbstore', - fastestsmallesttextencoderdecoder: - '/node_modules/fastestsmallesttextencoderdecoder/NodeJS/EncoderAndDecoderNodeJS.min' + 'idb-wrapper': '/node_modules/idb-wrapper/idbstore' }, libPathDefinition ), diff --git a/package-lock.json b/package-lock.json index 1d6aed4..b45eeec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@oat-sa/tao-core-sdk", - "version": "1.2.0", + "version": "1.3.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 66706c6..9b1fdcb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oat-sa/tao-core-sdk", - "version": "1.2.0", + "version": "1.3.0", "displayName": "TAO Core SDK", "description": "Core libraries of TAO", "homepage": "https://github.com/oat-sa/tao-core-sdk-fe#readme",