Skip to content

Commit

Permalink
fix(pkg): inline import-meta-resolve
Browse files Browse the repository at this point in the history
fixing esm issue with `cjs` target
  • Loading branch information
pi0 committed Oct 20, 2021
1 parent b085827 commit 50f13b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions build.config.ts
Expand Up @@ -3,6 +3,7 @@ import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
declaration: true,
emitCJS: true,
inlineDependencies: true,
entries: [
'src/index'
]
Expand Down
4 changes: 1 addition & 3 deletions package.json
Expand Up @@ -22,12 +22,10 @@
"release": "yarn test && yarn build && standard-version && npm publish && git push --follow-tags",
"test": "yarn build && mocha ./test/**/*.test.mjs"
},
"dependencies": {
"import-meta-resolve": "^1.1.1"
},
"devDependencies": {
"@nuxtjs/eslint-config": "latest",
"@types/node": "latest",
"import-meta-resolve": "^1.1.1",
"chai": "^4.3.4",
"eslint": "latest",
"jiti": "^1.12.5",
Expand Down

0 comments on commit 50f13b1

Please sign in to comment.