-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from PepsRyuu/PrettyFormatFrameError
Plugin warning formatting
- Loading branch information
Showing
7 changed files
with
174 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"scripts": { | ||
"clean": "shx rm -rf dist", | ||
"start": "cross-env NODE_ENV=development node ../../lib/cli.js -c --hot --content-base public --port 9001", | ||
"build": "npm run clean && cross-env NODE_ENV=production rollup -c" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-typescript": "^8.2.0", | ||
"cross-env": "^5.2.0", | ||
"rollup": "^1.28.0", | ||
"shx": "^0.3.2", | ||
"tslib": "^2.1.0", | ||
"typescript": "^4.2.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Typescript Test</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script async src="/main.[hash].js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import typescript from '@rollup/plugin-typescript'; | ||
|
||
let config = { | ||
input: './src/main.ts', | ||
output: { | ||
dir: 'dist', | ||
format: 'esm', | ||
entryFileNames: '[name].[hash].js', | ||
assetFileNames: '[name].[hash][extname]' | ||
}, | ||
plugins: [ | ||
typescript() | ||
] | ||
} | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
function add (a: number, b: number) { | ||
return a + b; | ||
} | ||
|
||
let message: string = 'hello world'; | ||
|
||
document.body.textContent = message + ', Adding 1 + 2 = ' + add(1, 2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters