diff --git a/doric-demo/package.json b/doric-demo/package.json index 700f1e7a..b04de1ef 100644 --- a/doric-demo/package.json +++ b/doric-demo/package.json @@ -10,17 +10,17 @@ }, "license": "Apache-2.0", "dependencies": { - "@rollup/plugin-json": "^4.0.2", "doric": "file:../doric-js", "reflect-metadata": "^0.1.13", - "rollup": "^1.29.0", - "tslib": "^1.10.0", - "typescript": "^3.7.4" + "rollup": "^2.12.1", + "tslib": "^2.0.0", + "typescript": "^3.9.3" }, "devDependencies": { - "@rollup/plugin-buble": "^0.21.0", - "@rollup/plugin-commonjs": "^11.0.1", - "@rollup/plugin-image": "^2.0.4", - "@rollup/plugin-node-resolve": "^7.0.0" + "@rollup/plugin-buble": "^0.21.3", + "@rollup/plugin-commonjs": "^12.0.0", + "@rollup/plugin-image": "^2.0.5", + "@rollup/plugin-json": "^4.0.3", + "@rollup/plugin-node-resolve": "^8.0.0" } } diff --git a/doric-js/bundle/doric-sandbox.es5.js b/doric-js/bundle/doric-sandbox.es5.js index 66ad4758..5ca3296c 100644 --- a/doric-js/bundle/doric-sandbox.es5.js +++ b/doric-js/bundle/doric-sandbox.es5.js @@ -59,8 +59,18 @@ var doric = (function (exports) { var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; - function createCommonjsModule(fn, module) { - return module = { exports: {} }, fn(module, module.exports), module.exports; + function createCommonjsModule(fn, basedir, module) { + return module = { + path: basedir, + exports: {}, + require: function (path, base) { + return commonjsRequire(path, (base === undefined || base === null) ? module.path : base); + } + }, fn(module, module.exports), module.exports; + } + + function commonjsRequire () { + throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs'); } /*! ***************************************************************************** diff --git a/doric-js/package.json b/doric-js/package.json index 85bc9183..0c997954 100644 --- a/doric-js/package.json +++ b/doric-js/package.json @@ -22,22 +22,22 @@ }, "homepage": "https://github.com/doric-pub/doric#readme", "dependencies": { - "@types/ws": "^6.0.4", - "core-js": "^3.6.4", + "@types/ws": "^7.2.4", + "core-js": "^3.6.5", "dts-bundle": "^0.7.3", - "proxy-polyfill": "^0.3.0", + "proxy-polyfill": "^0.3.1", "reflect-metadata": "^0.1.13", - "rollup": "^1.29.0", - "tslib": "^1.10.0", - "typescript": "^3.9.2", - "ws": "^7.2.1" + "rollup": "^2.12.1", + "tslib": "^2.0.0", + "typescript": "^3.9.3", + "ws": "^7.3.0" }, "publishConfig": { "registry": "https://registry.npmjs.org" }, "devDependencies": { - "@rollup/plugin-node-resolve": "^7.0.0", - "@rollup/plugin-buble": "^0.21.0", - "@rollup/plugin-commonjs": "^11.0.1" + "@rollup/plugin-node-resolve": "^8.0.0", + "@rollup/plugin-buble": "^0.21.3", + "@rollup/plugin-commonjs": "^12.0.0" } }