Skip to content

Commit

Permalink
feat: es module build - just 1 js and 1 css in the package
Browse files Browse the repository at this point in the history
  • Loading branch information
davay42 committed May 14, 2023
1 parent 4225d6a commit 09eac65
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 585 deletions.
3 changes: 1 addition & 2 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
},
"exports": {
".": "./dist/app.js",
"./style.css": "./dist/style.css",
"./app.iife.js": "./dist/app.iife.js"
"./style.css": "./dist/style.css"
},
"main": "./dist/app.js",
"module": "./dist/app.js",
Expand Down
2 changes: 1 addition & 1 deletion app/vite.config.lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default defineConfig({
name: 'GunVue',
// the proper extensions will be added
fileName: 'app',
formats: ["es", "iife"],
formats: ["es"],
},
outDir: "dist",
target: "esnext",
Expand Down
4 changes: 0 additions & 4 deletions docs/tutorials/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@

3. Change in the `#app` section and modify the chat topic if you want.
4. Save the file and open it with any browser. Welcome to your first p2p chat app!

This simple app will work fine in most modern browsers. But if you need to build a more old, but solid IIFE version of the package.

<<< ../examples/app.iife.html{8-13,19-27}
31 changes: 0 additions & 31 deletions examples/app.iife.html

This file was deleted.

Loading

0 comments on commit 09eac65

Please sign in to comment.