Update rollup to the latest version 🚀 (#860)
* fix(package): update rollup to version 1.0.0 * chore(package): update lockfile package-lock.json * fix inline script script
This commit is contained in:
parent
e5ef4b9bb1
commit
26d0b827bc
|
@ -28,11 +28,13 @@ export async function buildInlineScript () {
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
let { code, map } = await bundle.generate({
|
let { output } = await bundle.generate({
|
||||||
format: 'iife',
|
format: 'iife',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
let { code, map } = output[0]
|
||||||
|
|
||||||
let fullCode = `${code}//# sourceMappingURL=/inline-script.js.map`
|
let fullCode = `${code}//# sourceMappingURL=/inline-script.js.map`
|
||||||
let checksum = crypto.createHash('sha256').update(fullCode).digest('base64')
|
let checksum = crypto.createHash('sha256').update(fullCode).digest('base64')
|
||||||
|
|
||||||
|
|
16
package-lock.json
generated
16
package-lock.json
generated
|
@ -7997,12 +7997,20 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rollup": {
|
"rollup": {
|
||||||
"version": "0.68.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/rollup/-/rollup-0.68.0.tgz",
|
"resolved": "https://registry.npmjs.org/rollup/-/rollup-1.0.0.tgz",
|
||||||
"integrity": "sha512-UbmntCf8QBlOqJnwsNWQCI0oonHOgs9y1OLoO8BHf2r8gCyRLp3JzLHXARJpsNDAS08Qm3LDjzyWma5sqnCxDQ==",
|
"integrity": "sha512-LV6Qz+RkuDAfxr9YopU4k5o5P/QA7YNq9xi2Ug2IqOmhPt9sAm89vh3SkNtFok3bqZHX54eMJZ8F68HPejgqtw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/estree": "0.0.39",
|
"@types/estree": "0.0.39",
|
||||||
"@types/node": "*"
|
"@types/node": "*",
|
||||||
|
"acorn": "^6.0.4"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"acorn": {
|
||||||
|
"version": "6.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/acorn/-/acorn-6.0.4.tgz",
|
||||||
|
"integrity": "sha512-VY4i5EKSKkofY2I+6QLTbTTN/UvEQPCo6eiwzzSaSWfpaDhOmStMCMod6wmuPciNq+XS0faCglFu2lHZpdHUtg=="
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rollup-plugin-replace": {
|
"rollup-plugin-replace": {
|
||||||
|
|
|
@ -82,7 +82,7 @@
|
||||||
"quick-lru": "^2.0.0",
|
"quick-lru": "^2.0.0",
|
||||||
"remount": "^0.9.3",
|
"remount": "^0.9.3",
|
||||||
"requestidlecallback": "^0.3.0",
|
"requestidlecallback": "^0.3.0",
|
||||||
"rollup": "^0.68.0",
|
"rollup": "^1.0.0",
|
||||||
"rollup-plugin-replace": "^2.1.0",
|
"rollup-plugin-replace": "^2.1.0",
|
||||||
"rollup-plugin-terser": "^3.0.0",
|
"rollup-plugin-terser": "^3.0.0",
|
||||||
"sapper": "github:nolanlawson/sapper#nolan/sw-index-html-built",
|
"sapper": "github:nolanlawson/sapper#nolan/sw-index-html-built",
|
||||||
|
|
Loading…
Reference in a new issue