Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 93c4faa

Browse files
author
knight.chen
committed
chore: change style import
1 parent 0ed7d2b commit 93c4faa

File tree

8 files changed

+880
-926
lines changed

8 files changed

+880
-926
lines changed

.eslintrc.cjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,10 @@ module.exports = {
1818
'@typescript-eslint/no-explicit-any': 'off',
1919
'@typescript-eslint/no-non-null-assertion': 'off',
2020
},
21+
overrides: [
22+
{
23+
files: ['*.cjs'],
24+
env: { node: true },
25+
},
26+
],
2127
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = ({ onGetWebpackConfig }) => {
2+
onGetWebpackConfig((config) => {
3+
config.module
4+
.rule('mjs$')
5+
.test(/\.mjs$/)
6+
.include.add(/node_modules/)
7+
.end()
8+
.type('javascript/auto');
9+
});
10+
};

packages/vue-renderer/build.umd.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"ignoreHtmlTemplate": true,
1919
"plugins": [
2020
"build-plugin-react-app",
21-
["build-plugin-moment-locales", { "locales": ["zh-cn"] }]
21+
["build-plugin-moment-locales", { "locales": ["zh-cn"] }],
22+
"./build.plugin.cjs"
2223
]
2324
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = ({ onGetWebpackConfig }) => {
2+
onGetWebpackConfig((config) => {
3+
config.module
4+
.rule('mjs$')
5+
.test(/\.mjs$/)
6+
.include.add(/node_modules/)
7+
.end()
8+
.type('javascript/auto');
9+
});
10+
};

packages/vue-simulator-renderer/build.umd.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"ignoreHtmlTemplate": true,
2424
"plugins": [
2525
"build-plugin-react-app",
26-
["build-plugin-moment-locales", { "locales": ["zh-cn"] }]
26+
["build-plugin-moment-locales", { "locales": ["zh-cn"] }],
27+
"./build.plugin.cjs"
2728
]
2829
}

packages/vue-simulator-renderer/src/simulator.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import {
4040
getClosestNodeInstanceByComponent,
4141
} from './utils';
4242
import { createMemoryHistory, createRouter } from 'vue-router';
43-
import './simulator.less';
4443

4544
const loader = new AssetLoader();
4645

0 commit comments

Comments
 (0)