mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 07:49:43 +02:00
Add import attribute dogfood test
This commit is contained in:
parent
e64e0e7c96
commit
9abd97fc96
3 changed files with 13 additions and 0 deletions
|
@ -32,3 +32,4 @@ website/changelog
|
|||
website/_dogfooding/_swizzle_theme_tests
|
||||
website/_dogfooding/_asset-tests/badSyntax.js
|
||||
website/_dogfooding/_asset-tests/badSyntax.css
|
||||
website/_dogfooding/clientModuleImportAttributes.ts
|
||||
|
|
11
website/_dogfooding/clientModuleImportAttributes.ts
Normal file
11
website/_dogfooding/clientModuleImportAttributes.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
// Test for import attribute support
|
||||
// See https://github.com/facebook/docusaurus/issues/11016
|
||||
import '@generated/i18n' with { type: "json" }
|
||||
|
|
@ -131,6 +131,7 @@ export const dogfoodingPluginInstances: PluginConfig[] = [
|
|||
getClientModules() {
|
||||
return [
|
||||
require.resolve('./clientModuleExample.ts'),
|
||||
require.resolve('./clientModuleImportAttributes.ts'),
|
||||
require.resolve('./clientModuleCSS.css'),
|
||||
require.resolve('./migrateStorageNamespace.ts'),
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue