Skip to content

Commit 9abd97f

Browse files
committed
Add import attribute dogfood test
1 parent e64e0e7 commit 9abd97f

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ website/changelog
3232
website/_dogfooding/_swizzle_theme_tests
3333
website/_dogfooding/_asset-tests/badSyntax.js
3434
website/_dogfooding/_asset-tests/badSyntax.css
35+
website/_dogfooding/clientModuleImportAttributes.ts
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* Copyright (c) Facebook, Inc. and its affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
// Test for import attribute support
9+
// See https://github.com/facebook/docusaurus/issues/11016
10+
import '@generated/i18n' with { type: "json" }
11+

website/_dogfooding/dogfooding.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export const dogfoodingPluginInstances: PluginConfig[] = [
131131
getClientModules() {
132132
return [
133133
require.resolve('./clientModuleExample.ts'),
134+
require.resolve('./clientModuleImportAttributes.ts'),
134135
require.resolve('./clientModuleCSS.css'),
135136
require.resolve('./migrateStorageNamespace.ts'),
136137
];

0 commit comments

Comments
 (0)