Skip to content

Commit

Permalink
fix: source maps (#2787)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasvh authored Jan 2, 2022
1 parent 9fda3e1 commit 46db867
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default {
// Allow json resolution
json(),
// Compile TypeScript files
typescript(),
typescript({ sourceMap: true, inlineSources: true }),
// Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs)
commonjs({
include: 'node_modules/**'
Expand Down
2 changes: 1 addition & 1 deletion tests/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const mkdirp = require('mkdirp');

export const app = express();
app.use('/', serveIndex(path.resolve(__dirname, '../'), {icons: true}));
app.use('/', express.static(path.resolve(__dirname, '../')));
app.use([/^\/src($|\/)/, '/'], express.static(path.resolve(__dirname, '../')));

export const corsApp = express();
corsApp.use('/proxy', proxy());
Expand Down

0 comments on commit 46db867

Please sign in to comment.