mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
remove old fly task related to eval-script.js
(#1997)
This commit is contained in:
parent
b00525897d
commit
1703ad302c
|
@ -4,7 +4,6 @@ const isWindows = /^win/.test(process.platform)
|
|||
|
||||
export async function compile(fly) {
|
||||
await fly.parallel(['bin', 'server', 'lib', 'client'])
|
||||
await fly.start('unrestrict')
|
||||
}
|
||||
|
||||
export async function bin(fly, opts) {
|
||||
|
@ -27,14 +26,6 @@ export async function client(fly, opts) {
|
|||
notify('Compiled client files')
|
||||
}
|
||||
|
||||
export async function unrestrict(fly) {
|
||||
await fly.source('dist/lib/eval-script.js').babel({
|
||||
babelrc: false,
|
||||
plugins: ['babel-plugin-transform-remove-strict-mode']
|
||||
}).target('dist/lib')
|
||||
notify('Completed removing strict mode for eval script')
|
||||
}
|
||||
|
||||
export async function copy(fly) {
|
||||
await fly.source('pages/**/*.js').target('dist/pages')
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue