Skip to content

Commit

Permalink
Adds sourcemaps to dist for better debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
webketje committed Jun 7, 2023
1 parent b92baab commit 543b876
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ coverage
coverage.info
test/fixtures/*/build
node_modules
lib/**/*.cjs
lib/**/*.js
lib/**
!lib/*.d.ts
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@
"url": "git+https://github.com/metalsmith/js-bundle.git"
},
"files": [
"lib/index.cjs",
"lib/index.js",
"src/index.js",
"src/es5.js"
"lib",
"src"
],
"directories": {
"lib": "lib",
Expand Down Expand Up @@ -65,7 +63,7 @@
"lint": "eslint --fix .",
"lint:check": "eslint --fix-dry-run .",
"release": "npm run build && release-it .",
"build": "microbundle --target node --no-sourcemap -f cjs,esm --strict --generateTypes=false",
"build": "microbundle --target node -f cjs,esm --strict --generateTypes=false",
"test": "c8 mocha -t 5000",
"test:debug": "DEBUG=@metalsmith/js-bundle:* npm test",
"test:e2e": "serve -l 3000 test/fixtures"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/babel-fallback/expected/index.js

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

0 comments on commit 543b876

Please sign in to comment.