Skip to content

Commit

Permalink
Separate sourcemaps, better sourcemaps that link to ts files.
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Jun 15, 2018
1 parent 85d5237 commit 6373e23
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"renameschema": "scripts/rename-schema.sh",
"presite": "npm run prebuild && npm run data && npm run build:site && npm run build:toc && npm run build:versions && scripts/create-example-pages",
"site": "bundle exec jekyll serve --incremental",
"lint": "tslint -p .",
"lint": "tslint -p . -e 'package.json'",
"test": "jest test/ && npm run lint && npm run schema && jest examples/ && npm run test:runtime",
"test:inspect": "node --inspect-brk ./node_modules/.bin/jest --runInBand test",
"test:runtime": "TZ=America/Los_Angeles TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' wdio wdio.conf.js",
Expand Down Expand Up @@ -84,6 +84,7 @@
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-json": "^3.0.0",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"source-map-support": "^0.5.6",
"svg2png-many": "^0.0.7",
"ts-jest": "^22.4.6",
Expand Down
6 changes: 4 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import commonjs from 'rollup-plugin-commonjs';
import json from 'rollup-plugin-json';
import nodeResolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import sourcemaps from 'rollup-plugin-sourcemaps';

export default {
input: 'build/src/index.js',
Expand All @@ -12,7 +13,8 @@ export default {
},
plugins: [
nodeResolve(),
commonjs(),
json(),
commonjs()
sourcemaps()
]
};
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"allowSyntheticDefaultImports": true,
"declaration": true,
"forceConsistentCasingInFileNames": false,
"inlineSourceMap": true,
"sourceMap": true,
"inlineSources": true,
"isolatedModules": false,
"noEmitOnError": true,
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5362,6 +5362,13 @@ rollup-plugin-node-resolve@^3.3.0:
is-module "^1.0.0"
resolve "^1.1.6"

rollup-plugin-sourcemaps@^0.4.2:
version "0.4.2"
resolved "https://registry.yarnpkg.com/rollup-plugin-sourcemaps/-/rollup-plugin-sourcemaps-0.4.2.tgz#62125aa94087aadf7b83ef4dfaf629b473135e87"
dependencies:
rollup-pluginutils "^2.0.1"
source-map-resolve "^0.5.0"

rollup-pluginutils@^2.0.1, rollup-pluginutils@^2.2.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.3.0.tgz#478ace04bd7f6da2e724356ca798214884738fc4"
Expand Down

0 comments on commit 6373e23

Please sign in to comment.