You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: webpack.config.js
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ const config = {
31
31
devtool: 'source-map',
32
32
externals: {
33
33
vscode: 'commonjs vscode',// the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/
34
+
prettier: 'commonjs prettier',
34
35
},
35
36
resolve: {
36
37
// support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader
@@ -135,6 +136,7 @@ const serverWeb = {
135
136
mainFields: ['browser','module','main'],
136
137
extensions: ['.ts','.js'],// support ts-files and js-files
137
138
alias: {
139
+
'./services/yamlFormatter': path.resolve(__dirname,'./build/polyfills/yamlFormatter.js'),// not supported for now. prettier can run in the web, but it's a bit more work.
0 commit comments