feat(ses): Create ses/lockdown alias
MODIFY
packages/ses/NEWS.md
packages/ses/NEWS.md
@@ -5,6 +5,7 @@ User-visible changes in SES:
- *BREAKING CHANGE* The `ses/lockdown` module is again just `ses`.
Instead of having a light 43KB `ses/lockdown` and a heavy 3.1MB `ses`, there
is just a 52KB `ses` that has everything except `StaticModuleRecord`.
+ For this release, there remains a `ses/lockdown` alias to `ses`.
- *BREAKING CHANGE* Third-party static module interface implementations *must*
now explicitly list their exported names.
For CommonJS, this implies using a heuristic static analysis of `exports`

ADD
packages/ses/lockdown.js
+import './index.js';

MODIFY
packages/ses/package.json
packages/ses/package.json
"import": "./index.js",
"require": "./dist/ses.cjs",
"browser": "./dist/ses.umd.js"
+ },
+ "./lockdown": {
+ "import": "./index.js",
+ "require": "./dist/ses.cjs",
+ "browser": "./dist/ses.umd.js"
}
},
"scripts": {
"test": "yarn build && yarn ava",
"qt": "yarn ava",
"test:platform-compatability": "node test/package/test.cjs",
- "build": "rollup --config rollup.config.js",
+ "build": "rollup --config rollup.config.js && (cd dist; cp ses.cjs lockdown.cjs; cp ses.mjs lockdown.mjs; cp ses.umd.js lockdown.umd.js; cp ses.umd.min.js lockdown.umd.min.js)",
"demo": "http-server -o /demos"
},
"dependencies": {

feat(ses): Create ses/lockdown alias