Skip to content

Commit

Permalink
Merge pull request #502 from rdkcentral/revert-483-feat/add-named-export
Browse files Browse the repository at this point in the history
Revert "Add named export for Lightning in the ESM build"
  • Loading branch information
frank-weindel authored Jul 3, 2023
2 parents 570d411 + 946130d commit 8378d0e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 58 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"version": "2.10.0",
"license": "Apache-2.0",
"type": "module",
"types": "dist/src/lightning.esm.d.mts",
"types": "dist/index.d.ts",
"module": "dist/lightning.esm.js",
"main": "dist/lightning.js",
"exports": {
".": {
"import": {
"types": "./dist/src/lightning.esm.d.mts",
"types": "./dist/index.d.ts",
"default": "./dist/lightning.esm.js"
},
"require": {
"types": "./dist/src/lightning.d.mts",
"types": "./dist/index.d.ts",
"default": "./dist/lightning.js"
}
},
Expand Down
27 changes: 0 additions & 27 deletions src/lightning.esm.d.mts

This file was deleted.

27 changes: 0 additions & 27 deletions src/lightning.esm.mjs

This file was deleted.

2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const isMinifiedBuild = process.env.BUILD_MINIFY === 'true';
const isInspectorBuild = process.env.BUILD_INSPECTOR === 'true';

let outDir = 'dist';
let entry = resolve(__dirname, isEs5Build ? 'src/lightning.mjs' : 'src/lightning.esm.mjs');
let entry = resolve(__dirname, 'src/lightning.mjs');
let outputBase = 'lightning';
let sourcemap = true;
let useDts = true;
Expand Down

0 comments on commit 8378d0e

Please sign in to comment.