Skip to content

Commit

Permalink
feat/buildin com mjs format (opentiny#918)
Browse files Browse the repository at this point in the history
* feat: builtinComp output mjs format

* fix: change pkg json entry
  • Loading branch information
chilingling authored Dec 4, 2024
1 parent 9e799e7 commit 7d0956f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/builtinComponent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@opentiny/tiny-engine-builtin-component",
"version": "2.0.0-rc.3",
"description": "",
"main": "dist/index.js",
"module": "dist/index.js",
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"type": "module",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/builtinComponent/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default defineConfig({
lib: {
entry: path.resolve(__dirname, './index.js'),
name: 'builtinComponent',
fileName: () => 'index.js',
fileName: () => 'index.mjs',
formats: ['es']
},
rollupOptions: {
Expand Down

0 comments on commit 7d0956f

Please sign in to comment.