mirror of
https://github.com/actions/configure-pages.git
synced 2026-05-14 11:56:46 +00:00
Merge pull request #16 from paper-spa/latest-ecma
Update Espree configuration to allow for latest supported ECMA version
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -14596,7 +14596,7 @@ class ConfigParser {
|
|||||||
|
|
||||||
// Parse the AST out of the configuration file
|
// Parse the AST out of the configuration file
|
||||||
const espreeOptions = {
|
const espreeOptions = {
|
||||||
ecmaVersion: 6,
|
ecmaVersion: 'latest',
|
||||||
sourceType: 'module',
|
sourceType: 'module',
|
||||||
range: true
|
range: true
|
||||||
}
|
}
|
||||||
|
|||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -166,7 +166,7 @@ class ConfigParser {
|
|||||||
|
|
||||||
// Parse the AST out of the configuration file
|
// Parse the AST out of the configuration file
|
||||||
const espreeOptions = {
|
const espreeOptions = {
|
||||||
ecmaVersion: 6,
|
ecmaVersion: 'latest',
|
||||||
sourceType: 'module',
|
sourceType: 'module',
|
||||||
range: true
|
range: true
|
||||||
}
|
}
|
||||||
|
|||||||
17
src/fixtures/nuxt/async.expected.js
Normal file
17
src/fixtures/nuxt/async.expected.js
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
const getAllDynamicRoute = async function() {
|
||||||
|
const routes = await (async () => {
|
||||||
|
return ['/posts/hello-world', '/posts/hello-again'];
|
||||||
|
})();
|
||||||
|
return routes;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default {
|
||||||
|
target: 'static',
|
||||||
|
router: {base: '/docs/'},
|
||||||
|
mode: 'universal',
|
||||||
|
generate: {
|
||||||
|
async routes () {
|
||||||
|
return getAllDynamicRoute();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
15
src/fixtures/nuxt/async.js
Normal file
15
src/fixtures/nuxt/async.js
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
const getAllDynamicRoute = async function() {
|
||||||
|
const routes = await (async () => {
|
||||||
|
return ['/posts/hello-world', '/posts/hello-again'];
|
||||||
|
})();
|
||||||
|
return routes;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default {
|
||||||
|
mode: 'universal',
|
||||||
|
generate: {
|
||||||
|
async routes () {
|
||||||
|
return getAllDynamicRoute();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user