Skip to content

Commit

Permalink
chore: remove sourcemap
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcc committed Apr 9, 2020
1 parent bb5a658 commit 36f772b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
7 changes: 3 additions & 4 deletions README.md
@@ -1,6 +1,6 @@
# TPLV

> Nano(~170b), High performance string template library, based on ES6 String template syntax.
> Nano(~170 bytes), High performance string template library, based on ES6 String template syntax.
[![npm Version](https://img.shields.io/npm/v/tplv.svg)](https://www.npmjs.com/package/tplv)
[![Build Status](https://github.com/hustcc/tplv/workflows/build/badge.svg)](https://github.com/hustcc/tplv/actions)
Expand Down Expand Up @@ -68,10 +68,9 @@ Run performance test with [rendering-test](https://aui.github.io/art-template/re
The core code and principles are as follows:

```ts

function render(template: string, data: object): string {
function render(template, data) {
const ks = Object.keys(data);
const vs = ks.map((k: any) => data[k]);
const vs = ks.map((k) => data[k]);

const t = `return \`${template}\``;
const f = new Function(...ks, t);
Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,11 +1,11 @@
{
"name": "tplv",
"version": "1.0.0",
"description": "Nano(~170), high performance string template library, based on ES6 String template syntax.",
"description": "Nano(~170 bytes), high performance string template library, based on ES6 String template syntax.",
"license": "MIT",
"main": "lib/index.js",
"module": "esm/index.js",
"browser": "dist/tplv.min.js",
"unpkg": "dist/tplv.min.js",
"types": "lib/index.d.ts",
"files": [
"lib",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Expand Up @@ -9,7 +9,7 @@ module.exports = [{
file: 'dist/tplv.min.js',
name: 'tplv',
format: 'umd',
sourcemap: true,
sourcemap: false,
},
plugins: [
resolve(),
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Expand Up @@ -7,13 +7,12 @@
"moduleResolution": "node",
"experimentalDecorators": true,
"declaration": true,
"sourceMap": true,
"sourceMap": false,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"pretty": true,
"lib": ["dom", "esnext"],
"skipLibCheck": true,
"sourceRoot": "src",
"baseUrl": "src"
},
"include": ["src/**/*"],
Expand Down

0 comments on commit 36f772b

Please sign in to comment.