Skip to content

Commit 0249b7f

Browse files
committed
feat: add optimizeForGutenberg in files template
1 parent 18ccb5a commit 0249b7f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/scripts/templates/wpackio.project.js.hbs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ module.exports = {
3333
// vendor: './src/mobile/vendor.js', // Could be a string
3434
// main: ['./src/mobile/index.js'], // Or an array of string (string[])
3535
// },
36+
// // If enabled, all WordPress provided external scripts, including React
37+
// // and ReactDOM are aliased automatically. Do note that all `@wordpress`
38+
// // namespaced imports are automatically aliased and enqueued by the
39+
// // PHP library. It will not change the JSX pragma because of external
40+
// // dependencies.
41+
// optimizeForGutenberg: false,
3642
// // Extra webpack config to be passed directly
3743
// webpackConfig: undefined,
3844
// },

0 commit comments

Comments
 (0)