Skip to content

Commit

Permalink
feat: mock stream
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 4, 2020
1 parent 7c663c2 commit 435ce77
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 24 deletions.
1 change: 1 addition & 0 deletions src/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const getRollupConfig = (config) => {
'consola',
// vue2
'encoding',
'stream',
'he',
'resolve',
'source-map',
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/mock.ts → src/runtime/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ function getProxy (name) {
})
}

export default getProxy('mock')
module.exports = getProxy('mock')
13 changes: 0 additions & 13 deletions src/runtime/vue2.basic.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/targets/cloudflare/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ export default {
entry: require.resolve('./entry'),
node: false,
hooks: {
config (config) {
if (config.nuxt === 2) {
config.renderer = 'vue2.basic'
}
},
'rollup:before' ({ rollupConfig }) {
rollupConfig.output.intro =
'const global = {}; const exports = {}; const module = { exports }; const process = { env: {}, hrtime: () => [0,0]};' +
Expand Down
5 changes: 0 additions & 5 deletions src/targets/sw/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ export default {
{ src: resolve(__dirname, 'index.html'), dst: '200.html' }
],
hooks: {
config (config) {
if (config.nuxt === 2) {
config.renderer = 'vue2.basic'
}
},
'rollup:before' ({ rollupConfig }) {
rollupConfig.output.intro =
'const global = {}; const exports = {}; const module = { exports }; const process = { env: {}, hrtime: () => [0,0]};' +
Expand Down

0 comments on commit 435ce77

Please sign in to comment.