未验证 提交 9626d6c6 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #21045 from linbingquan/dev-rollup

fix(rollup): Fixed the judgment.
......@@ -209,7 +209,7 @@ function glsl() {
if ( /\.glsl.js$/.test( id ) === false ) return;
code = code.replace( /\/\* glsl \*\/\`((.|\n)*)\`/, function ( match, p1 ) {
code = code.replace( /\/\* glsl \*\/\`((.|\r|\n)*)\`/, function ( match, p1 ) {
return JSON.stringify(
p1
......@@ -274,7 +274,7 @@ function polyfills() {
transform( code, filePath ) {
if ( filePath.endsWith( 'src/Three.js' ) ) {
if ( filePath.endsWith( 'src/Three.js' ) || filePath.endsWith( 'src\\Three.js' ) ) {
code = "import './polyfills';\n" + code;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册