Skip to content

Commit

Permalink
feat: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
oct16 committed Mar 13, 2020
1 parent 7aad53d commit c7cc5b3
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 22 deletions.
2 changes: 1 addition & 1 deletion assets/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<body>

<script type="module">
import { replay } from './web-replay.js'
import { replay } from './replay.js'
replay()
</script>

Expand Down
2 changes: 1 addition & 1 deletion examples/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ <h2>Form:</h2>
}
</script>
<script type="module">
import { record, DB } from './web-replay.js'
import { record, DB } from './replay.js'
DB.then(db => {
db.clear()
const ctr = record({
Expand Down
2 changes: 1 addition & 1 deletion examples/todo.html
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ <h1>todos</h1>
</script>

<script type="module">
import { record, DB } from './web-replay.js'
import { record, DB } from './replay.js'
DB.then(db => {
db.clear()
const ctr = record({
Expand Down
92 changes: 82 additions & 10 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"devDependencies": {
"@oct16/code-formatter": "^1.0.9",
"@rollup/plugin-html": "^0.1.1",
"@rollup/plugin-typescript": "^3.0.0",
"@types/lodash-es": "^4.17.3",
"execa": "^4.0.0",
"fs-extra": "^8.1.0",
Expand All @@ -19,6 +18,7 @@
"rollup-plugin-sourcemaps": "^0.5.0",
"rollup-plugin-string": "^3.0.0",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-typescript2": "^0.26.0",
"tslib": "^1.11.1",
"typescript": "^3.8.3"
},
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.dev.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ts from '@rollup/plugin-typescript'
import ts from 'rollup-plugin-typescript2'
import html from '@rollup/plugin-html'
import node from 'rollup-plugin-node-resolve'
import sourcemaps from 'rollup-plugin-sourcemaps'
Expand Down
22 changes: 15 additions & 7 deletions rollup.config.prod.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ts from '@rollup/plugin-typescript'
import ts from 'rollup-plugin-typescript2'
import html from '@rollup/plugin-html'
import node from 'rollup-plugin-node-resolve'
import sourcemaps from 'rollup-plugin-sourcemaps'
Expand All @@ -9,12 +9,20 @@ import { string } from 'rollup-plugin-string'

export default {
input: 'index.ts',
output: {
name: 'wr',
format: 'esm',
file: 'dist/web-replay.js',
sourcemap: true
},
output: [
{
name: 'wr',
format: 'cjs',
file: 'dist/replay.cjs.js',
sourcemap: true
},
{
name: 'wr',
format: 'esm',
file: 'dist/replay.esm.js',
sourcemap: true
}
],
plugins: [
ts(),
node({
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"resolveJsonModule": true,
"esModuleInterop": true,
"removeComments": false,
"declaration": true,
"jsx": "preserve",
"skipLibCheck": true,
"lib": [
Expand Down

0 comments on commit c7cc5b3

Please sign in to comment.