Skip to content

Commit

Permalink
revert: bundled pupa
Browse files Browse the repository at this point in the history
  • Loading branch information
bent10 committed Oct 20, 2023
1 parent f98d31a commit dbd8703
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
6 changes: 4 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"doogu": "^3.2.7",
"marked": "^9.1.2",
"prettier-plugin-svelte": "^3.0.3",
"pupa": "^3.1.0",
"react-dom": "^18.2.0",
"vite-plugin-cachedir": "^1.1.1"
},
Expand Down
13 changes: 6 additions & 7 deletions packages/code-preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
"stilearning-marked-extensions"
],
"type": "module",
"main": "./dist/index.cjs",
"browser": "./dist/index.umd.cjs",
"module": "./dist/index.js",
"main": "./dist/index.cjs.js",
"browser": "./dist/index.umd.js",
"module": "./dist/index.es.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"import": "./dist/index.es.js",
"require": "./dist/index.cjs.js",
"types": "./dist/index.d.ts"
}
},
Expand All @@ -49,8 +49,7 @@
"format": "prettier . --write --cache-location ../../node_modules/.prettier --ignore-path ../../.prettierignore"
},
"dependencies": {
"attributes-parser": "^2.1.1",
"pupa": "^3.1.0"
"attributes-parser": "^2.1.1"
},
"peerDependencies": {
"marked": ">=7.0.0"
Expand Down
3 changes: 1 addition & 2 deletions packages/code-preview/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ export default defineConfig({
fileName: 'index'
},
rollupOptions: {
external: ['marked', 'attributes-parser', 'moo', 'pupa'],
external: ['marked', 'attributes-parser', 'moo'],
output: {
globals: {
marked: 'marked',
moo: 'moo',
pupa: 'pupa',
'attributes-parser': 'parseAttrs'
},
entryFileNames: '[name].[format].js'
Expand Down

0 comments on commit dbd8703

Please sign in to comment.